round_df | R Documentation |
Rounds all numeric columns in dataframe, using the R default "half to even"
round_df(df, digits = 2)
df |
Dataframe to be rounded |
digits |
Number of digits, defaults to 2 |
https://stackoverflow.com/questions/9063889/how-to-round-a-data-frame-in-r-that-contains-some-character-variables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.