If the argument to filename
is a json metadata document, this will be used to find csv files for
each table using the value of csvw:url
.
read_csvw(filename, metadata = NULL)
a path for a csv table or a json metadata document
optional user metadata
csvw metadata list, with a dataframe
property added to each table
If the argument to filename
is a csv file, and no metadata
is provided, an attempt is made to
derive metadata.
If the argument to filename
is a csv file, and the metadata
is provided, then the given csv will
override the value of csvw:url
.
The csvw metadata is returned as a list. In each table in the table group, an element named
dataframe
is added which provides the contents of the csv table parsed into a data frame using
the table schema.
if (FALSE) {
read_csvw("metadata.json")
read_csvw("table.csv", "metadata.json")
}