Description Usage Arguments Value Author(s) Examples
Restrict the number of decimals places for a numeric value
1  | n_decimals(x, n)
 | 
x | 
 a numeric vector  | 
n | 
 number of decimals  | 
a numeric vector
Daniel Gardiner (daniel.gardiner@phe.gov.uk)
1 2 3 4 5 6 7  | x = c(1.001, 1.2323221, 1.211111, 1.00001, 1, 2, 3.1, 3.66)
n_decimals(x, 0)
n_decimals(x, 5)
n_decimals(x, 10)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.