Learn R Programming

smallstuff (version 1.0.3)

pop.var: Calculate the Population Variance

Description

Calculate the variance of a numeric vector if the data constitutes the whole population. Note that missing values are excluded.

Usage

pop.var(x)

Value

The population variance of the entries in x

Arguments

x

numeric vector

Examples

Run this code
pop.var(c(1:6,NA,7:10))

Run the code above in your browser using DataLab