Rounds a vector of numeric values to percentages ensuring that they add up to 100
round_percent(x, decimals = 0L, ties = c("random", "last"))
Returns a numeric vector of the same length as x
Returns a vector of numeric values.
f <- c(1,2,1,3,2,1,2,3,1)
round_percent(f)
#> [1] 6 13 6 19 13 6 12 19 6