Description Usage Arguments Value Examples
View source: R/round_numeric_cols.R
Automatically applies 'round()' to all numeric columns in a data frame using 'dplyr::mutate_all()'. Column names are retained, the number of digits rounded to defaults to zero.
1 | round_numeric_cols(.tbl, .digits = 0)
|
.tbl |
a tibble or data frame |
.digits |
integer indicating the number of decimal places to be used. See '?round' for more information. |
a tibble or data frame whose numeric columns are rounded
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.