Description Usage Arguments Value
View source: R/format_data_frame_percentage.R
Will format all numbers in a data.frame as percentage. And replace NA with string specified in *na.string* parameter.
1 | format_data_frame_percentage(df, na.string = "", digits = 2)
|
df |
the data.frame to format |
na.string |
what to replace NA's with |
digits |
number of digits to round to |
a formatted data.frame
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.