pop.var: Population variance function

View source: R/declare_diagnosands.R

pop.varR Documentation

Population variance function

Description

Population variance function

Usage

pop.var(x, na.rm = FALSE)

Arguments

x

a numeric vector, matrix or data frame.

na.rm

logical. Should missing values be removed?

Value

numeric scalar of the population variance

Examples


x <- 1:4
var(x) # divides by (n-1)
pop.var(x) # divides by n



DeclareDesign documentation built on June 21, 2022, 1:05 a.m.