roundDf | R Documentation |
Convert numeric columns of data.frame to character
roundDf(df, digits = 2)
df |
A data.frame |
digits |
integer indicating the number of decimal places |
roundDf(iris,digits=c(1,2,3,4)) roundDf(mtcars,digits=2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.