population_variance: Population variance of a vector

View source: R/population_variance.R

population_varianceR Documentation

Population variance of a vector

Description

Calculates the population variance, rather than the sample variance, of a vector

Usage

population_variance(vector, na.rm = TRUE)

Arguments

vector

a numeric vector

na.rm

if TRUE, NA values will be removed before calculation

Examples

population_variance(1:4)
var(1:4)

kim documentation built on July 8, 2022, 5:07 p.m.