round_df | R Documentation |
Round the numeric columns in a data.frame
round_df(df, digits = 5)
df |
a data.frame |
digits |
the number of digits to round to |
a data.frame
x <- matrix(runif(10), nrow=10, ncol=10) x <- as.data.frame(x) y <- round_df(x, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.