var.p | R Documentation |
The function var.p computes a population variance. The function sd.p computes a population standard deviation.
var.p(x, wt = rep(1, length(x)), na.rm = FALSE)
sd.p(x, wt = rep(1, length(x)), na.rm = FALSE)
x |
a numeric vector. |
wt |
a numeric vector of weights. By default all elements of x are given the same weight. |
na.rm |
a logical value indicating whether NA values should be stripped before the computation proceeds. |
var.p()
: Population variance.
sd.p()
: Population standard deviation.
var.p(1:6)
var.p(x = 1:5, wt = 6:10)
var.p(x = rep(1:5, 6:10))
sd.p(x = 1:5, wt = 6:10)
sd.p(x = rep(1:5, 6:10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.