disaggregate: Splits table rows into multiple by the integer "by". All...

View source: R/transformations.R

disaggregateR Documentation

Splits table rows into multiple by the integer "by". All other fields are duplicated.

Description

Splits table rows into multiple by the integer "by". All other fields are duplicated.

Usage

disaggregate(dt, by, keep.row.number = FALSE)

Arguments

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


madedotcom/retl documentation built on Sept. 19, 2022, 3:28 a.m.