rowVars | R Documentation |
Variance of features in rows
rowVars(x, na.rm = TRUE)
x |
Numeric matrix |
na.rm |
Logical. Should missing values (including NaN) be omitted from the calculations? |
myVal <- matrix(1:9, nrow=3, byrow=FALSE)
myVar <- rowVars(myVal)
stopifnot(identical(myVar, c(9,9,9)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.