get_percentage | R Documentation |
The percentage is relative to the variable in from
argument
get_percentage(
tbl,
from,
discard = NULL,
percent = TRUE,
keep = FALSE,
digits = 2
)
tbl |
tibble or data.frame |
from |
character, column name of the base variable |
discard |
character or character vector, columns to discard of the percentage operations (but included in the results) |
percent |
logical, whether to output the percentages in percent or not |
keep |
logical, whether to include the base variable in |
digits |
integer, number of digits to round the percentages |
tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.