Convert data from a database table to R format

convert.r.to.db(
  vals,
  rclass = schema$rclass,
  schema = NULL,
  null.as.na = TRUE,
  origin = "1970-01-01",
  add.missing = TRUE
)

Arguments

vals

the values loaded from the database table

rclass

the r class of the table columns, is extracted from schema

schema

a table schema that can be used to convert values

null.as.na

shall NULL values be converted to NA values?

origin

the origin date for DATE and DATETIME conversion