Skip to contents

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.

Usage

read_tdr_csv(tdr_file, codec = TRUE, ...)

Arguments

tdr_file

path or url to a tabular-data-resource.yaml file (or a directory containing a tabular-data-resource.yaml file)

codec

logical; use only CoDEC properties?

...

additional options passed onto readr::read_csv()

Value

tibble with added tabular-data-resource attributes