rowVars {psichomics} | R Documentation |
Calculate variance for each row of a matrix
rowVars(mat, na.rm = FALSE)
mat |
Matrix |
na.rm |
Boolean: remove NAs? |
Vector of variances
df <- rbind("Gene 1"=c(3, 5, 7), "Gene 2"=c(8, 2, 4), "Gene 3"=c(9:11)) rowVars(df)