format_number | R Documentation |
Format numbers or p values
format_number(x, accuracy = 0.1, big.mark = ",", scale_cut = NULL, ...)
format_p_value(x, accuracy = 1e-04)
x |
A |
accuracy |
A number to round to. Use (e.g.) Applied to rescaled data. |
big.mark |
Character used between every 3 digits to separate thousands. |
scale_cut |
Named numeric vector that allows you to rescale large (or small) numbers and add a prefix. Built-in helpers include:
If you supply a vector |
... |
Arguments passed on to
|
Formatted number as character
string.
format_number(232342.3443)
format_number(232342.3443, accuracy = 0.01)
format_number(232342.3443, accuracy = 1, big.mark = "")
format_p_value(0.03445553)
format_p_value(0.0003445553)
format_p_value(0.00003445553)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.