list2dt | R Documentation |
This function converts a named list with vector values in each element to a long data.table. The list is first flattened into a single vector, and then the data.table is created with two columns: one for the name of the original list element and another for the value.
list2dt(x)
x |
A named list where each element contains a vector of values. |
A long data.table with two columns: 'name' and 'value'.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.