Skip to contents

Calculates the standard deviation after excluding missing values. A fast, unsafe alternative to stats::sd(x, na.rm = TRUE).

Usage

fsd(x)

Arguments

x

(numeric)
The numeric vector to calculate the standard deviation.

Value

Scalar numeric

See also

Examples

#----------------------------------------------------------------------------
# fsd() example
#----------------------------------------------------------------------------
library(bkbase)

fsd(1:3)
#> [1] 1
fsd(c(1:3, NA))
#> [1] 1