R/misc.R
sd_nn.Rd
SD with na.rm=TRUE
sd_nn(x, ...)
a vector of numbers
other arguments passed to sd
A numeric scalar giving the standard deviation of x, with missing values removed.
x
x <- c(NA, 10, 90) sd(x) #> [1] NA sd_nn(x) #> [1] 56.56854