powered by
This function summarizes columns of matrix (or data.frame) 'x' using apply Note, it cannot handle character entries ! (all results will be NA)
.summarizeCols( x, me = c("median", "medianComplete", "mean", "meanComplete", "aver", "average", "min", "max", "maxOfRef", "minOfRef", "maxAbsOfRef", "lastLi", "last", "firstComplete", "first", "firstLi", "summary"), vectAs1row = TRUE )
vector with summary for each column
data.frame matrix of data to be summarized by comlumn
(character, length=1) summarization method (eg 'maxLast','minLast','maxLast','maxAbsLast', 'minLast', 'medianComplete' or 'meanComplete')
(logical) if TRUE will interprete non-matrix 'x' as matrix with 1 row (correct effect of automatic conversion when extracting 1 line)
summarizeCols
t1 <- matrix(round(runif(30,1,9)), nc=3); rownames(t1) <- letters[c(1:5,3:4,6:4)]
Run the code above in your browser using DataLab