Skip to contents

Load data

Usage

item_load(col.classes, file = NULL, path = NULL)

Arguments

col.classes

a vector containing the expected column types

file

an optional file name (including .csv extension)

path

an optional path to the file

Value

the data (items)

Details

File connector: if file is not NULL, then data are loaded from the given .csv

Examples

if (FALSE) { # \dontrun{
# -- File connector:
item_load(col.classes = c(id = "numeric", date = "Date", comment = "character"),
file = "mydata.csv", path = "path/to/my/data")
} # }