View source: R/population_variance.R

population_variance | R Documentation |

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

population_variance(vector, na.rm = TRUE)

`vector` |
a numeric vector |

`na.rm` |
if |

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.