View source: R/format-numbers.R
| format_apa_number | R Documentation |
Format a number according to APA rules
format_apa_number(
value,
col_type,
decimals = 2L,
p_decimals = 3L,
remove_lz = TRUE
)
value |
Character string containing the value |
col_type |
Column type: "pvalue", "estimate", "statistic", "integer", "default" |
decimals |
Number of decimal places for estimates/statistics |
p_decimals |
Number of decimal places for p-values |
remove_lz |
Whether to remove leading zeros (style-dependent) |
Formatted character string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.