For each row, one list/vector is constructed, each entry of the row becomes a list/vector element.
convertRowsToList(
x,
name.list = TRUE,
name.vector = FALSE,
factors.as.char = TRUE,
as.vector = TRUE
)convertColsToList(
x,
name.list = FALSE,
name.vector = FALSE,
factors.as.char = TRUE,
as.vector = TRUE
)
[list of lists or vectors].
[matrix | data.frame]
Object to convert.
[logical(1)]
Name resulting list with names of rows (cols) of x?
Default is FALSE.
[logical(1)]
Name vector elements in resulting list with names of cols (rows) of x?
Default is FALSE.
[logical(1)]
If x is a data.frame, convert factor columns to
string elements in the resulting lists?
Default is TRUE.
[logical(1)]
If x is a matrix, store rows as vectors in the resulting list - or otherwise as lists?
Default is TRUE.