View source: R/formatting-utils.R
sf | R Documentation |
This function specifies the number of significant figures to print (when\
passed to the accuracy
argument of nmbr()
and
related functions).
sf(x, n, dp_min = -Inf, dp_max = Inf)
x |
Vector of values for which significant figures are calculated |
n |
Number of significant figures to print |
dp_min |
(optional) Minimum number of decimal places to print. Use
negative values for positive powers of 10; e.g., |
dp_max |
(optional) Maximum number of decimal places to print. Use
negative values for positive powers of 10; e.g., |
A vector of the same length as x
, suitable to be passed to the
accuracy
argument of nmbr()
and related functions.
dp
, number-formatting
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.