roundReal | R Documentation |
Rounds all doubles (skipping dates and POSIX) in a data.frame to a specified number of digits. Created to use with SQL tables that sometimes have small number rounding errors.
roundReal(df, digits = 5)
df |
Input data.frame to mutate |
digits |
Number of digits to round to. Default is 5. |
A data.frame/tibble
## Not run: iris %>% roundReal(0) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.