-
Notifications
You must be signed in to change notification settings - Fork 977
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes #1701 -- fread support for csvy format
- Loading branch information
1 parent
5cd3a46
commit acf13b6
Showing
14 changed files
with
441 additions
and
7 deletions.
There are no files selected for viewing
This file contains 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 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 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 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,20 @@ | ||
--- | ||
name: my-dataset | ||
source: https://github.com/leeper/csvy/tree/master/inst/examples | ||
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 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: | ||
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 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: | ||
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 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 | ||
#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 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 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,14 @@ | ||
--- | ||
name: my-dataset | ||
source: https://github.com/leeper/csvy/tree/master/inst/examples | ||
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 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,14 @@ | ||
--- | ||
name: my-dataset | ||
source: https://github.com/leeper/csvy/tree/master/inst/examples | ||
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 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 @@ | ||
--- | ||
fields: | ||
- name: var1 | ||
type: string | ||
- name: var2 | ||
type: integer | ||
- name: var3 | ||
type: number | ||
--- | ||
|
||
|
||
var1,var2,var3 | ||
A,1,2.5 | ||
B,3,4.3 | ||
|
Oops, something went wrong.