| safe_mean | R Documentation |
Calculate mean with handling for empty vectors.
safe_mean(x)
x |
Numeric vector. |
Mean value or NA if vector is empty.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.