View source: R/round_data.frame.R
round_data.frame | R Documentation |
numeric
columns of a data.frame
This function rounds (only) the numeric
columns of a
data.frame
.
round_data.frame(df, digits = 0)
df |
[ |
digits |
[ Negative values are allowed, resulting in rounding to a power of ten. Can be |
A data.frame
.
Other data.frame helpers:
delete_columns_data.frame()
,
group_data.frame()
df <- data.frame("label" = c("A", "B"), "number" = rnorm(10))
round_data.frame(df, digits = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.