R/colclass_dict.R

#' Dictionary of column classes for reading data
colclass_dict <- c(
  "string" = "character",
  "integer" = "integer",
  "number" = "numeric",
  "factor" = "character",   # Convert to factor afterwards -- fread doesn't do factors
  "date" = "Date",
  "datetime" = "POSIXct",
  "boolean" = "logical"
)

Try the csvy package in your browser

Any scripts or data that you put into this service are public.

csvy documentation built on May 2, 2019, 2:09 a.m.