Description Usage Arguments Details Value See Also Examples
Analogous function for dcast and melt in data.table
1 2 3 4 5 6 7 8 9 |
data |
data.table |
group |
The unchanged group in the transformation |
class_to_spread |
The class of variable to spread |
value_to_spread |
The value of variable to spread. If missing, will guess automatically. |
fill |
Value with which to fill missing cells. Default uses |
gather_class |
The column name of gathered class. |
gather_value |
The column name of gathered value. |
na.rm |
If TRUE, entries with NA values will be removed from the data.table. |
In the nest_dt, the data would be nested to a column named 'ndt',
which is short for nested data.table.
data.table
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.