pop_var: Population Variance

Description Usage Arguments Value Examples

View source: R/pop_var.R

Description

Population Variance

Usage

1
pop_var(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 variance of x

Examples

1
2
3
4
5
6
7
8
pop_var(1:10)
8.25

pop_var(c(1:10, NA))
NA

pop_var(c(1:10, NA), na.rm = TRUE)
8.25

hamedbh/popstats documentation built on Nov. 4, 2019, 1:27 p.m.