Description Usage Arguments See Also Examples
This is a helper function for conveniently displaying percentages. It is used in other summary functions in salic.
1 |
x |
numeric: Vector of values to display as rounded percentages |
rnd |
numeric: number of decimals to round pct change results |
scale |
numeric: scaling paramter - defaults to 100 for showing percentages |
Other internal helper functions: calc_churn
,
format_num
, print_dat
1 2 3 | x <- data.frame(id = c(1,2,3,4), pop = c(135, 416, 389, 320))
x$pct <- pct_round(x$pop / sum(x$pop))
x
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.