calcPrototype(HELP)
calcPrototype()所属R语言包:HELP
Calculate prototype
计算原型
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Calculates prototype (trimmed mean) across all samples
原型(修剪平均计算所有样品)
用法----------Usage----------
calcPrototype(x, ...)
参数----------Arguments----------
参数:x
a numeric matrix, where each column represents a different sample
数字矩阵,每一列代表一个不同的样本
参数:...
Arguments to be passed to methods (see calcPrototype-methods):
被传递到方法的参数(见calcPrototype-methods):
element which element of AssayData to use for a given ExpressionSet input (default is "exprs")
element元素AssayData使用一个给定的ExpressionSet输入(默认为"exprs")
samples which samples to use as data. Can be a vector of characters matching sample names, integers indicating which samples to choose, or a mixture of the two. If NULL (default), all samples will be used.
samples样品使用的数据。可以是一个矢量字符匹配样本的名称,表示样本选择的整数,或两者的混合物。如果NULL(默认),所有样品将使用。
center logical; if TRUE (default) samples will be mean-centered before protototype calculation. If FALSE, this mean-centering step will be skipped
center逻辑,如果TRUE(默认)样品前protototype计算意味着为本。如果FALSE,这意味着定心一步将被跳过
trim the fraction (0 to 0.5, default is 0.1) of observations to be trimmed from each end of each row and column in x before the mean is computed.
trim意见分数(0至0.5,默认为0.1),从每一行和每一列中的每一端修剪x前平均计算。
verbose logical; if TRUE (default) progress will be output to screen. If FALSE, no output will be displayed.
verbose逻辑;如果TRUE(默认)的进展将是向屏幕输出。如果FALSE,没有输出将显示。
\dots other arguments to be passed to mean. See mean.
\dots可以通过mean其他参数。看到mean。
值----------Value----------
Returns a vector of numerical data, representing the prototype ([trimmed] mean) of all samples in x.
返回的数值数据的向量,占所有样品的原型在x([修剪]平均)。
作者(S)----------Author(s)----------
Mark Reimers (<a href="mailto:mreimers@vcu.edu">mreimers@vcu.edu</a>), Reid F. Thompson (<a href="mailto:rthompso@aecom.yu.edu">rthompso@aecom.yu.edu</a>)
参见----------See Also----------
calcPrototype-methods, mean
calcPrototype-methods,mean
举例----------Examples----------
#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)[RM(X,x.avg)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|