Population Standard Deviation

pop_sd(x, na.rm = FALSE)

Arguments

x

a numeric vector, matrix, or data frame.

na.rm

a logical: should NA values be removed?

Value

The population standard deviation of x

Examples

pop_sd(1:10)
#> [1] 2.872281
2.872281
#> [1] 2.872281
pop_sd(c(1:10, NA))
#> [1] NA
NA
#> [1] NA
pop_sd(c(1:10, NA), na.rm = TRUE)
#> [1] 2.872281
2.872281
#> [1] 2.872281