largeRem: Largest remainder method to round percentages

Description Usage Arguments Examples

View source: R/largeRem.R

Description

This function helps rounding up our down a list of percentages (that add up to 100) into a list of integers that still add up to 100

Usage

1
largeRem(pcVec)

Arguments

pcVec:

a vector

Examples

1
2
3
b <- c(20.5,60.3,19.2)
largeRem(b)
[1] 21 60 19

basilesimon/largeRem documentation built on May 23, 2019, 6:03 p.m.