R/misc.R
mean_nn.Rd
Mean with na.rm=TRUE
mean_nn(x, ...)
a vector of numbers
other arguments passed to mean
A numeric or complex scalar giving the mean of x, with missing values removed.
x
x <- c(NA, 10, 90) mean(x) #> [1] NA mean_nn(x) #> [1] 50