roundDF | R Documentation |
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)
dat |
A |
digits |
Integer indicating the number of decimal places. |
Returns the rounded data.frame
.
roundDF(mtcars, digits = 0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.