powered by
data.frame
Round all numeric variables in a data.frame, leave the other variables untouched. Column and row names are preserved.
roundDF(dat, digits = 3)
Returns the rounded data.frame.
A data.frame.
Integer indicating the number of decimal places.
roundDF(mtcars, digits = 0)
Run the code above in your browser using DataLab