roundDF {eatTools} | R Documentation |
Round a data.frame
.
Description
Round all numeric variables in a data.frame
, leave the other variables untouched. Column and row names are preserved.
Usage
roundDF(dat, digits = 3)
Arguments
dat |
A |
digits |
Integer indicating the number of decimal places. |
Value
Returns the rounded data.frame
.
Examples
roundDF(mtcars, digits = 0)
[Package eatTools version 0.7.6 Index]