Appends a percent sign to provided numerical value. Rounding is carried out according to value passed in decimals
formal argument (defaults to value specified in panderOptions('digits')
).
pct(
x,
digits = panderOptions("digits"),
type = c("percent", "%", "proportion"),
check.value = TRUE
)
a numeric value that is to be rendered to percent
an integer value indicating number of decimal places
a character value indicating whether percent or proportion value was provided (partial match is allowed)
perform a sanity check to see if provided numeric value is correct (defaults to TRUE
)
a character value with formatted percent