.summarizeCols {wrMisc}R Documentation

Summarize columns of matrix (or data.frame) 'x' using apply (main)

Description

This function summarizes columns of matrix (or data.frame) 'x' using apply Note, it cannot handle character entries ! (all results will be NA)

Usage

.summarizeCols(
  x,
  me = c("median", "medianComplete", "mean", "meanComplete", "aver", "average", "min",
    "max", "maxOfRef", "minOfRef", "maxAbsOfRef", "lastLi", "last", "firstComplete",
    "first", "firstLi", "summary"),
  vectAs1row = TRUE
)

Arguments

x

data.frame matrix of data to be summarized by comlumn

me

(character, length=1) summarization method (eg 'maxLast','minLast','maxLast','maxAbsLast', 'minLast', 'medianComplete' or 'meanComplete')

vectAs1row

(logical) if TRUE will interprete non-matrix 'x' as matrix with 1 row (correct effect of automatic conversion when extracting 1 line)

Value

vector with summary for each column

See Also

summarizeCols

Examples

t1 <- matrix(round(runif(30,1,9)), nc=3); rownames(t1) <- letters[c(1:5,3:4,6:4)]  

[Package wrMisc version 1.15.0.3 Index]