Description Usage Arguments Value Examples
Variance
1 | variance(x, margin = 2L)
|
x |
a numeric vector, matrix, or data.frame. |
margin |
In case of matrix or dataframe apply variance by columns margin = 2L or by rows margin = 1L. Default 2. |
the sample variance of the input.
1 2 3 4 5 6 | example1 <- data.frame("V1" = rep(1, 100), "V2" = 100:1, "V4" = sample.int(3000,100,replace=FALSE))
example2 <- rep(1, 100)
variance(example1)
variance(example1, margin = 1L)
variance(example2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.