round_data.frame {oeli} | R Documentation |
Round numeric
columns of a data.frame
Description
This function rounds (only) the numeric
columns of a
data.frame
.
Usage
round_data.frame(df, digits = 0)
Arguments
df |
[ |
digits |
[ Negative values are allowed, resulting in rounding to a power of ten. Can be |
Value
A data.frame
.
See Also
Other data.frame helpers:
delete_columns_data.frame()
,
group_data.frame()
Examples
df <- data.frame("label" = c("A", "B"), "number" = rnorm(10))
round_data.frame(df, digits = 1)
[Package oeli version 0.7.0 Index]