real.to.int: Converts real numbers to integers

View source: R/dbRake.R

real.to.intR Documentation

Converts real numbers to integers

Description

Converts real numbers (fractions) to integer numbers while preserving rounded sum. This is a helper function used in dbRake.

Usage

real.to.int(realNums)

Arguments

realNums

a vector of real (fraction) number

Value

a vector of integer numbers that sums to the rounded sum of realNums

See Also

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()


bcgov/dbutils documentation built on Sept. 30, 2022, 12:04 a.m.