meanNOTna | R Documentation |
Mean without NAs
meanNOTna(x)
x |
a vector |
The mean of the vector when NAs are excluded, just mean(x, na.rm=TRUE)
x <- c(5,12,NA,4)
meanNOTna(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.