calcPrototype {HELP} | R Documentation |
Calculates prototype (trimmed mean) across all samples
calcPrototype(x, ...)
x |
a numeric matrix, where each column represents a different sample |
... |
Arguments to be passed to methods (see calcPrototype-methods ):
element AssayData to use for a given ExpressionSet input (default is "exprs")samples center trim x before the mean is computed. verbose ... mean . See mean . |
Returns a vector of numerical data, representing the prototype ([trimmed] mean) of all samples in x.
Mark Reimers (mreimers@vcu.edu), Reid F. Thompson (rthompso@aecom.yu.edu)
#demo(pipeline,package="HELP") x <- matrix(data=rep(1:1000,10),nrow=1000,ncol=10) x <- x*(sample(1:100/100,size=10000,replace=TRUE)) x <- t(t(x)-1000*(1:10)) x[c(1:10,991:1000),] x.avg <- calcPrototype(x) x.avg[c(1:10,991:1000)] #rm(x,x.avg)