powered by
Population variance function
pop.var(x, na.rm = FALSE)
numeric scalar of the population variance
a numeric vector, matrix or data frame.
logical. Should missing values be removed?
x <- 1:4 var(x) # divides by (n-1) pop.var(x) # divides by n
Run the code above in your browser using DataLab