test_import {CALIBERdatamanage} | R Documentation |
A sample dataset with different column types, to test the functions importDT
and importFFDF
.
data(test_import)
A data frame with 6 observations on the following 10 variables.
logical
a logical vector
bitnum
a numeric vector
bitlogic
a logical vector
intnotbit
a numeric vector
integer
a numeric vector
intnot
a numeric vector
dateok
a factor with levels 2003-01-01
2003-03-04
2004-02-01
2009-02-03
datemiss
a factor with levels 0000-00-00
2003-01-01
2003-03-04
2009-02-03
datenotok
a factor with levels 2003-01-01
2003-03-04
2004-02-01
2009-02-03
error
character
a factor with levels another
other
that
thing
this
data(test_import) tempfile <- paste(tempdir(), 'test_import.csv', sep='') write.csv(test_import, tempfile, row.names = FALSE) a <- importDT(tempfile) str(a) print(a) unlink(tempfile)