| format_numbers_at | R Documentation |
Combines mutate_at() and as_formatted_number()
format_numbers_at(.tbl, .vars, decimal_places = 1, remove_trailing_zeroes = T)
.tbl |
A data frame |
.vars |
A vars() list of symbolic columns |
decimal_places |
Decimal places to display |
remove_trailing_zeroes |
If the required decimal places are less than decimal places, should resulting trailing zeros be removed? |
Value of mutate_at
format_p_values_at
library(tibble)
library(magrittr)
library(dplyr)
tibble(a=c(0.1, 0.238546)) %>%
format_numbers_at(vars(a))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.