powered by
Translate csvw datatypes to R types. This implementation currently targets readr::cols column specifications.
datatype_to_type(datatypes)
a readr::cols specification - a list of collectors
readr::cols
a list of csvw datatypes
if (FALSE) { cspec <- datatype_to_type(list("double", list(base="date", format="yyyy-MM-dd"))) readr::read_csv(readr::readr_example("challenge.csv"), col_types=cspec) }
Run the code above in your browser using DataLab