csvwr
csvwr copied to clipboard
Read and write CSV on the Web (csvw) tables and metadata in R
Is there a way to read multiple csv files with one metadata json file?
csvw can define 'separators' in field definitions e.g. ```json { "datatype": "string", "propertyUrl": "http://cldf.clld.org/v1.0/terms.rdf#source", "required": false, "separator": ";", "name": "Source" } ``` ...which means that the field should be parsed...
Following #6, we can replace `csvwr::vec_depth` with `purrr::pluck_depth` once purrr 1.0.0 is released on CRAN.
Templates with `{#var}` are rewritten as `#{var}`, this doesn't comply with the [spec for fragment expansion](https://datatracker.ietf.org/doc/html/rfc6570#section-3.2.4) if the var is undefined. Templates with an absolute URL e.g. `http://example.org/countries.csv{#countryCode}` have `{+url}`...
@geotheory has [suggested adding support for factors](https://github.com/Robsteranium/csvwr/issues/1#issuecomment-873318145).
The spec permits a few [top level objects](https://w3c.github.io/csvw/metadata/#top-level-properties): table group, table, schema, dialect or transformation. It would be good if `create_metadata` and `read_csvw` could support tables and not just table...