read a CSV tabular data resource into R from disk or the web
Source:R/read_write_tdr.R
read_tdr_csv.Rd
The CSV file defined in a tabular-data-resource yaml file
is read into R using readr::read_csv()
. Metadata
(properties and schema) are stored as attributes
of the returned tibble and are also used to set
the column classes of the returned data.frame or tibble.
Files starting with http://
or https://
will be automatically
downloaded locally first.
Arguments
- tdr_file
path or url to a
tabular-data-resource.yaml
file (or a directory containing atabular-data-resource.yaml
file)- codec
logical; use only CoDEC properties?
- ...
additional options passed onto
readr::read_csv()