Description Usage Arguments Value Author(s)
percent() reformats a (numeric) fraction as a (character) percentage
1 | percent(fractions, digits, justify = F)
|
fractions |
numeric vector, matrix or array, where one corresponds to 100 columns of a data.frame. |
digits |
number of digits to the right of the decimal place to preserve. If missing, defaults to the minimum number of digits such that all results greater than zero will be represented as greater than zero. |
justify |
logical, should the results be right justified by padding with spaces? |
returns a character vector with same dimensions as fractions, where values are represented as percentages, including " are returned as "Inf" or "-Inf"; missing values as NA's (unquoted).
M.W.Rowe, mwr.stats@gmail.com
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.