-
Notifications
You must be signed in to change notification settings - Fork 1k
csvy reading capabilities #2656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| --- | ||
| name: my-dataset | ||
| source: https://github.com/leeper/csvy/tree/master/inst/examples | ||
| schema: | ||
| fields: | ||
| - name: var1 | ||
| title: variable 1 | ||
| type: string | ||
| description: explaining var1 | ||
| constraints: | ||
| - required: true | ||
| - name: var2 | ||
| title: variable 2 | ||
| type: integer | ||
| - name: var3 | ||
| title: variable 3 | ||
| type: number | ||
| --- | ||
| var1,var2,var3 | ||
| A,1,2.5 | ||
| B,3,4.3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| --- | ||
| name: | ||
| schema: | ||
| fields: | ||
| - name: var1 | ||
| title: variable 1 | ||
| type: string | ||
| description: a single-quoted character variable | ||
| - name: var2 | ||
| title: variable 2 | ||
| type: integer | ||
| - name: var3 | ||
| title: variable 3 | ||
| type: number | ||
| description: European-style numeric | ||
| header: true | ||
| sep: "|" | ||
| dec: "," | ||
| quote: "'" | ||
| na.strings: '@' | ||
| --- | ||
| var1|var2|var3 | ||
| 'A'|1|2,5 | ||
| 'B'|@|4,3 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| #--- | ||
| #name: my-dataset | ||
| #source: https://github.com/leeper/csvy/tree/master/inst/examples | ||
| #schema: | ||
| # fields: | ||
| # - name: var1 | ||
| # title: variable 1 | ||
| # type: string | ||
| # description: explaining var1 | ||
| # constraints: | ||
| # - required: true | ||
| # - name: var2 | ||
| # title: variable 2 | ||
| # type: integer | ||
| # - name: var3 | ||
| # title: variable 3 | ||
| # type: number | ||
| #--- | ||
| var1,var2,var3 | ||
| A,1,2.5 | ||
| B,3,4.3 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| --- | ||
| names: | ||
| - Date | ||
| - WTI | ||
| class: data.frame | ||
| title: Cushing, OK WTI Spot Price FOB | ||
| filename: data.csv | ||
| fileurl: https://raw.githubusercontent.com/jrovegno/csvy/master/data.csv | ||
| sourceurl: http://www.eia.gov/dnav/pet/hist/LeafHandler.ashx?n=PET&s=RWTC&f=D | ||
| source_csvy: https://github.com/leeper/csvy/tree/master/inst/examples | ||
| item: PET | ||
| sourcekey: RWTC | ||
| freq: Daily | ||
| rate: MID | ||
| type: price | ||
| units: Dollars per Barrel | ||
| latestdate: '2015-08-31' | ||
| releasedate: '2015-09-02' | ||
| nextreleasedate: '2015-09-10' | ||
| source: Thomson Reuters | ||
| contactemail: infoctr@eia.doe.gov | ||
| contactphone: (202) 586-8800 | ||
| --- | ||
| "Date","WTI" | ||
| "1986-01-02",25.56 | ||
| "1986-01-03",26 | ||
| "1986-01-06",26.53 | ||
| "1986-01-07",25.85 | ||
| "1986-01-08",25.87 | ||
| "1986-01-09",26.03 | ||
| "1986-01-10",25.65 | ||
| "1986-01-13",25.08 | ||
| "1986-01-14",24.97 | ||
| "1986-01-15",25.18 | ||
| "1986-01-16",23.98 | ||
| "1986-01-17",23.63 | ||
| "1986-01-20",21.33 | ||
| "1986-01-21",20.61 | ||
| "1986-01-22",20.25 | ||
| "1986-01-23",19.93 | ||
| "1986-01-24",19.45 | ||
| "1986-01-27",20.87 | ||
| "1986-01-28",19.45 | ||
| "1986-01-29",19.61 | ||
| "1986-01-30",19.58 | ||
| "1986-01-31",18.95 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| --- | ||
| name: my-dataset | ||
| source: https://github.com/leeper/csvy/tree/master/inst/examples | ||
| schema: | ||
| fields: | ||
| - name: var1 | ||
| - name: var2 | ||
| type: integer | ||
| - name: var3 | ||
| type: number | ||
|
|
||
| var1,var2,var3 | ||
| A,1,2.5 | ||
| B,3,4.3 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| --- | ||
| name: my-dataset | ||
| source: https://github.com/leeper/csvy/tree/master/inst/examples | ||
| schema: | ||
| fields: | ||
| - name: var1 | ||
| - name: var2 | ||
| type: integer | ||
| - name: var3 | ||
| type: number | ||
| --- | ||
| var1,var2,var3 | ||
| A,1,2.5 | ||
| B,3,4.3 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| --- | ||
| name: | ||
| schema: | ||
| fields: | ||
| - name: var1 | ||
| title: variable 1 | ||
| type: string | ||
| description: a single-quoted character variable | ||
| - name: var2 | ||
| title: variable 2 | ||
| type: integer | ||
| - name: var3 | ||
| title: variable 3 | ||
| type: number | ||
| description: European-style numeric | ||
| header: true | ||
| sep: "|" | ||
| dec: "." | ||
| quote: "'" | ||
| na.strings: '@' | ||
| --- | ||
| var1|var2|var3 | ||
| 'A'|1|2,5 | ||
| 'B'|@|4,3 | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| --- | ||
| name: | ||
| schema: | ||
| fields: | ||
| - name: var1 | ||
| title: variable 1 | ||
| type: string | ||
| description: a single-quoted character variable | ||
| - name: var2 | ||
| title: variable 2 | ||
| type: integer | ||
| - name: var3 | ||
| title: variable 3 | ||
| type: number | ||
| description: European-style numeric | ||
| header: true | ||
| sep: "|" | ||
| dec: "," | ||
| quote: "'" | ||
| na.strings: '@' | ||
| --- | ||
| 'A'|1|2,5 | ||
| 'B'|@|4,3 | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does it mean that
zlibhas to be present to install data.table, even if one is not going to use compression? I hope notThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
zlib necessary to compile. Seems like it's standard though. Windows and Mac users installing binaries from CRAN won't need to install anything special, afaik.
If there's a way to make zlib optional, would be ideal of course. But there's plenty of other higher priority things to do first. I'd wait to see if anyone reports difficulties due to missing zlib first.