listToDfOneRow {ParamHelpers} | R Documentation |
Convert a list to a data.frame with one row
Description
Convert a list of vectors or scalars to a data.frame
with only one row. Names of the columns correspond to
the names of elements in the list. If a vector is one list element it is spread over multiple
columns and named sequentially, e.g. a = c(5,7)
becomes data.frame(a1 = 5, a2 = 7)
.
Usage
listToDfOneRow(l)
Arguments
l |
( |
Value
(data.frame
) with only one row, containing the list elements.
[Package ParamHelpers version 1.14.1 Index]