| safe_sd | R Documentation |
Calculate standard deviation with handling for single-value vectors.
safe_sd(x)
x |
Numeric vector. |
Standard deviation or NA if vector has fewer than 2 elements.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.