round_data_frame | R Documentation |
Round all numeric values found in a data.frame to a specified number of decimal points
round_data_frame(df, digits = 2)
df |
A data.frame |
digits |
The number of decimal points to round all numeric values to |
Columns which are not numeric will be returned unmodified
A data.frame identical to the input df
but with all numerical values
rounded
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.