Calculates the standard deviation after excluding missing values.
A fast, unsafe alternative to stats::sd(x, na.rm = TRUE).
Arguments
- x
(numeric)
The numeric vector to calculate the standard deviation.
Examples
#----------------------------------------------------------------------------
# fsd() example
#----------------------------------------------------------------------------
library(bkbase)
fsd(1:3)
#> [1] 1
fsd(c(1:3, NA))
#> [1] 1