Data are generated from an a density defined by a vector of integers.
addDataDensity(dtOld, dataDist, varname, uselimits = FALSE)
Name of data table that is to be updated.
Vector that defines the desired density.
Name of variable name.
Indicator to use minimum and maximum of input data vector as limits for sampling. Defaults to FALSE, in which case a smoothed density that extends beyond the limits is used.
A data table with the generated data.