| safe_round | R Documentation |
NULL and NARounds numeric values while gracefully handling NULL, empty, and NA inputs.
safe_round(x, digits)
x |
Numeric value to round. |
digits |
Integer number of decimal places. |
Rounded numeric value, or NA_real_ if input is NULL/NA/empty.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.