| real.to.int | R Documentation |
Converts real numbers (fractions) to integer numbers while preserving rounded sum.
This is a helper function used in dbRake.
real.to.int(realNums)
realNums |
a vector of real (fraction) number |
a vector of integer numbers that sums to the rounded sum of realNums
The overall raking function: dbRake()
Other raking helpers:
add.random.fraction.to.cols(),
adjustSex(),
allowNegsnoMargin(),
calc.cols(),
multiRake(),
noNegsneedMargin(),
noNegsnoMargin(),
prep.prorate.col(),
prorate.col(),
prorate.row(),
prorate(),
read.inputs(),
rename.age.grps(),
rounded()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.