The function rounds values preserving total sums

round_preserve_sum(x, digits = 0)

Arguments

x

numeric vector of values to be rounded

digits

integer indicating the number of decimal places. See round.

Value

Returns a numeric vector.

See also

Other waffle: waffle_chart(), waffleize()