powered by
Calculates the population variance, rather than the sample variance, of a vector
population_variance(vector, na.rm = TRUE)
a numeric vector
if TRUE, NA values will be removed before calculation
TRUE
population_variance(1:4) var(1:4)
Run the code above in your browser using DataLab