customRowMeans {psichomics} | R Documentation |
Calculate statistics for each row or column of a matrix
customRowMeans(mat, na.rm = FALSE, fast = FALSE) customRowMedians(mat, na.rm = FALSE, fast = FALSE) customRowVars(mat, na.rm = FALSE, fast = FALSE) customRowMins(mat, na.rm = FALSE, fast = FALSE) customRowMaxs(mat, na.rm = FALSE, fast = FALSE) customRowRanges(mat, na.rm = FALSE, fast = FALSE) customColMedians(mat, na.rm = FALSE, fast = FALSE)
mat |
Matrix |
na.rm |
Boolean: remove missing values ( |
fast |
Boolean: use |
Vector of selected statistic
df <- rbind("Gene 1"=c(3, 5, 7), "Gene 2"=c(8, 2, 4), "Gene 3"=c(9:11)) psichomics:::customRowMeans(df) psichomics:::customRowVars(df, fast=TRUE)