test_import {CALIBERdatamanage}R Documentation

Test dataset for import functions

Description

A sample dataset with different column types, to test the functions importDT and importFFDF.

Usage

data(test_import)

Format

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

Examples

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)

[Package CALIBERdatamanage version 0.1-14 Index]