round_df
Round numeric columns of a data frame or tibble
round_df(data, dig = 2)
data
: A data frame or tibbledig
: The number of digits to round toAn object of the same class as data
, with the numeric columns rounded off to dig
Takes a data frame or tibble as input, rounds the numeric columns to the specified number of digits.
head(round_df(iris, 0))
Kieran Healy