Description Usage Arguments Value Note Examples
rowwise_dt
allows the user to create a data.table
object by
specifying a row-by-row layout. It's convenient and highly readable when
the table is small.
1 |
... |
Arguments that defines the structure of a |
A data.table
object. The default is for each column to return as a vector.
However, if any column has a length that is not one (e.g., list(1, 2)
),
the whole column will be converted to a list column.
This function has been filed to data.table in
PR#4291, where the function
name is rowwiseDT
.
1 2 3 4 5 | rowwise_dt(
A=, B=, C=,
1, "a", 2:3,
2, "b", list(5)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.