new_digits | R Documentation |
The idea here is to capture three pieces of data: (1) a function for formatting digits in an output number (2) a default number of digits to use and (3) a named list with digit customization information; the names correspond to potential future column names and the values are custom digit information.
new_digits(.fun = sig, .default = 3, ..., .data = NULL)
.fun |
function for modifying digits on a number |
.default |
the default value for digits |
... |
|
.data |
a named list to be used in place of |
x <- new_digits(round, .default = 2, WT = 1, ALB = 3)
as.list(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.