Convert a list of row-vector of equal structure to a data.frame
Source:R/convertListOfRowsToDataFrame.R
convertListOfRowsToDataFrame.RdElements 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.
Arguments
- rows
[
list]
List of rows. Each row is a list or vector of the same structure, where all corresponding elements must have the same class. It is allowed that in some rows some elements are not present, see above.- strings.as.factors
[
logical(1)]
Convert character columns to factors? Default isdefault.stringsAsFactors()for R < "4.1.0" andFALSEotherwise.- row.names
[
character|integer|NULL]
Row names for result. By default the names of the listrowsare taken.- col.names
[
character|integer]
Column names for result. By default the names of an element ofrowsare taken.