找回密码
 注册
查看: 471|回复: 0

R语言 HELP包 combineData()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 21:34:21 | 显示全部楼层 |阅读模式
combineData(HELP)
combineData()所属R语言包:HELP

                                         Combine data
                                         结合数据

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

Calculate trimmed and/or weighted means of groups of rows in a given data matrix.
一个给定的数据矩阵中的行组计算修剪和/或加权方式。


用法----------Usage----------


combineData(x, y, w, ...)



参数----------Arguments----------

参数:x
a numeric matrix containing the values whose trimmed and/or weighted mean is to be computed. Each column is treated independently.  
数字矩阵包含值的修剪和/或加权平均计算。每一列被视为独立。


参数:y
a vector describing the discrete groups used to divide the elements of x.  If y is missing then all elements of x are handled together.  
向量描述用来除以x的元素的离散组。如果缺少y是x的所有元素一起处理。


参数:w
a matrix of weights the same dimensions as x giving the weights to use for each element of x. If w is missing then all elements of x are given the same weight.  
重量为x的重量,使用x的每个元素的尺寸相同的矩阵。如果w丢失,那么x的所有元素都给予同样的重量。


参数:...
Arguments to be passed to methods (see combineData-methods):      
被传递到方法的参数(见combineData-methods):

trimthe fraction (0 to 0.5, default is 0) of observations to be trimmed from each group of rows in x according to y.   
trim意见分数(0至0.5,默认为0),从每一组行修剪,在x根据y。

na.rmlogical; if TRUE, missing values are removed from x and y and z. If FALSE any missing values cause an error.  
na.rm逻辑;如果TRUE,缺失值从x和y和z删除。如果FALSE任何遗漏值导致错误。

element which element of AssayData to use for a given ExpressionSet input (default is "exprs")   
element元素AssayData使用一个给定的ExpressionSet输入(默认为"exprs")

feature.group which element of featureData to use as binning variable (default is NULL). Can be a character matching varLabel or simply an integer indicating which feature to choose. See getFeatures.   
feature.groupfeatureData作为分级变量使用(默认为NULL)的元素。可以是一个匹配varLabel“或只是一个整数,指示功能选择的字符。看到getFeatures。

element.weight which element of AssayData to use for a given ExpressionSet input.  If NULL (default), weighting is not performed.   
element.weightAssayData使用一个给定的ExpressionSet输入元素。如果NULL(默认),比重没有进行。

feature.weight which element of featureData to use as weighting variable (default is NULL). Can be a character matching varLabel or simply an integer indicating which feature to choose. See getFeatures.   
feature.weightfeatureData使用加权变量(默认是NULL)元素。可以是一个匹配varLabel“或只是一个整数,指示功能选择的字符。看到getFeatures。

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(默认),所有样品将使用。

\dots other arguments not handled at this time.      
\dots其他参数没有在这个时间处理。


值----------Value----------

Returns a matrix of combined numerical data, where each row represents the summary of a group of elements from the corresponding column in x.
返回一个联合的数值数据的矩阵,每一行代表一组从x中的相应列的元素的总结。


注意----------Note----------

Each column in data matrix treated separately.
数据矩阵的每一列分别对待。


作者(S)----------Author(s)----------


Reid F. Thompson (<a href="mailto:rthompso@aecom.yu.edu">rthompso@aecom.yu.edu</a>)



参见----------See Also----------

combineData-methods, mean, weighted.mean
combineData-methods,mean,weighted.mean


举例----------Examples----------


#demo(pipeline,package="HELP")[演示(管道,包=“帮助”)]

x <- 1:100
combineData(x,w=x/100)
weighted.mean(x,w=x/100)

y <- sample(c("a","b","c",1:3),size=100,replace=TRUE)
combineData(cbind(x,x,2*x),y,trim=0.5)

#rm(x,y)[RM(X,Y)]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-2-6 07:08 , Processed in 0.033056 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表