round_df {socviz} | R Documentation |
Round numeric columns of a data frame or tibble
round_df(data, dig = 2)
data |
A data frame or tibble |
dig |
The number of digits to round to |
Takes a data frame or tibble as input, rounds the numeric columns to the specified number of digits.
An object of the same class as 'data', with the numeric columns rounded off to 'dig'
Kieran Healy
head(round_df(iris, 0))