datatype_to_type | R Documentation |
Translate csvw datatypes to R types. This implementation currently targets readr::cols column specifications.
datatype_to_type(datatypes)
datatypes |
a list of csvw datatypes |
a readr::cols
specification - a list of collectors
## Not run: cspec <- datatype_to_type(list("double", list(base="date", format="yyyy-MM-dd"))) readr::read_csv(readr::readr_example("challenge.csv"), col_types=cspec) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.