View source: R/transformations.R
disaggregate | R Documentation |
Splits table rows into multiple by the integer "by". All other fields are duplicated.
disaggregate(dt, by, keep.row.number = FALSE)
dt |
data.table to disaggregate. |
by |
integer by which each line is split into units of 1. |
keep.row.number |
boolean whether to keep the original row number as 'rn' in the final table |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.