csvToList: The inverse of the listToCsv() function...

Description Usage Arguments Value Author(s) See Also Examples

Description

The inverse of the listToCsv() function Takes a csv of serialized objects created by the listToCSV function and turns it into a proper R list.

Usage

1
csvToList(inFileName)

Arguments

inFileName

String pointing to the full path of the input CSV.

Value

Returns a list object. Or an error. Hopefully a list.

Author(s)

James "JD" Long

See Also

listToCsv()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
myList <- NULL
set.seed(1)
for (i in 1:10){
a <- c(rnorm(999), NA)
myList[[i]] <- a
}

require(caTools)
listToCsv(myList, "tst.csv")
all.equal(myList,  csvToList("tst.csv" ))

chrisschwer/segue documentation built on May 13, 2019, 6:56 p.m.