| rounded | R Documentation |
For some reason, R rounds to even (i.e., 12.5 rounds to 12), but we want to round to 0
(i.e., 12.5 rounds to 13). This is a helper function used in dbRake.
rounded(x)
x |
Number to be rounded |
Rounded number
Stephanie Yurchak, BC Stats
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(),
real.to.int(),
rename.age.grps()
rounded(1.2345) ## 1 rounded(12.5) ## 13
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.