Performs the opposite operation to `dplyr::count()`,
duplicating rows according to a weighting variable (or expression).
Analogous to `tidyr::uncount`.
Usage
uncount(.data, wt, .remove = TRUE)
Value
A data.table
Arguments
.data
A data.frame
wt
A vector of weights.
.remove
Should the column for weights be removed?
Default uses TRUE.