Read the CSV-data for a Data Resource
csv_reader(
path,
resource,
use_fread = FALSE,
convert_categories = c("no", "to_factor"),
as_connection = FALSE,
...
)
Returns a data.frame
with the data.
path to the data set.
a Data Resource.
use the fread
function instead of
read.csv
and return a data.table
.
how to handle columns for which the field
descriptor has a categories
property. Passed on to
dp_apply_schema
.
This argument is ignored. The function will always
return a data.frame
.
additional arguments are passed on to read.csv
or
fread
. Note that some arguments are already set
by csv_reader
, so not all arguments are available to use as
additional arguments.
Generally used by calling dp_get_data
.