param_set | R Documentation |
Set custom parameter-level significant digits rounding
param_set(...)
... |
Series of name-value pairs, optionally formatted using
|
Type param_set()
in console to view package defaults. Use of the
function will add to the defaults and/or override included defaults of the
same name. For values that are integers, use NA
so no decimal places will
be added.
list of default parameter-level significant digits rounding
# View included defaults
param_set()
# Update the defaults
param_set("{mean} ({sd})" = c(2,3), "pct" = 1)
# Separate mean and SD to different lines
param_set("mean" = 2, "sd" = 3)
# Add formatting using the glue syntax
param_set("{pct} %" = 1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.