convertListOfRowsToDataFrame {BBmisc} | R Documentation |
Convert a list of row-vector of equal structure to a data.frame.
Description
Elements are arranged in columns according to their name in each
element of rows
.
Variables that are not present in some row-lists, or encoded as NULL
, are filled using NAs.
Usage
convertListOfRowsToDataFrame(
rows,
strings.as.factors = NULL,
row.names,
col.names
)
Arguments
rows |
[ |
strings.as.factors |
[ |
row.names |
[ |
col.names |
[ |
Value
[data.frame
].
Examples
convertListOfRowsToDataFrame(list(list(x = 1, y = "a"), list(x = 2, y = "b")))
[Package BBmisc version 1.13 Index]