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

R语言 snpStats包 snp.cbind()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-26 14:47:33 | 显示全部楼层 |阅读模式
snp.cbind(snpStats)
snp.cbind()所属R语言包:snpStats

                                        Bind together two or more SnpMatrix objects
                                         结合在一起,两个或两个以上的SnpMatrix对象

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

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

These functions bind together two or more objects of class "SnpMatrix" or "XSnpMatrix".
这些功能结合在一起的两个或两个以上的类的对象"SnpMatrix"或"XSnpMatrix"。


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


# cbind(...)
# rbind(...)
snp.cbind(...)
snp.rbind(...)



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

参数:...
Objects of class "SnpMatrix" or "XSnpMatrix".
对象的类"SnpMatrix"或"XSnpMatrix"。


Details

详情----------Details----------

These functions  reproduce the action of the standard functions cbind and rbind. These are constrained to work by recursive calls to the generic functions  cbind2 and rbind2 which take just two arguments. This is somewhat inefficient in both time and memory use when binding more than two objects, so the functions snp.cbind and snp.rbind, which take multiple arguments, are also supplied.
这些功能重现cbind和rbind标准功能的行动。这些限制递归调用的通用功能cbind2和rbind2只需要两个参数。这是有些时绑定两个以上的对象,所以功能snp.cbind和snp.rbind,采取多种参数,还提供了在时间和内存使用效率低下。

When matrices are bound together by column, row names must be identical, column names must not be duplicated and, for objects of class XSnpMatrix the contents of the Female slot much match. When matrices are bound by row, column names must be identical and duplications of row names generate warnings.
当矩阵按列绑定在一起,行名称必须是相同的,不得重复列名,类XSnpMatrixFemale多槽比赛的内容的对象。当约束矩阵按行,列名必须是相同的,重复的列名生成警告。


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

A new matrix, of the same type as the input matrices.
一个新的矩阵,作为输入矩阵的同一类型。


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


David Clayton <a href="mailto:david.clayton@cimr.cam.ac.uk">david.clayton@cimr.cam.ac.uk</a>



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

cbind, rbind
cbind,rbind


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


data(testdata)
# subsetting ( Autosomes[c(1:9,11:19,21:29),] ) is quicker. this is just for illustrating[子集(常染色体[C(1:9,11:19,21:29)])更快。这只是说明]
# rbind and cbind[rbind和cbind]
first <- Autosomes[1:9,]
second <- Autosomes[11:19,]
third <- Autosomes[21:29,]
result1 <- rbind(first, second, third)
result2 <- snp.rbind(first, second, third)
all.equal(result1, result2)

result3 <- Autosomes[c(1:9,11:19,21:29),]
all.equal(result1, result3)

first <- Autosomes[,1:9]
second <- Autosomes[,11:19]
third <- Autosomes[,21:29]
result1 <- cbind(first, second, third)
result2 <- snp.cbind(first, second, third)
all.equal(result1, result2)

result3 <- Autosomes[,c(1:9,11:19,21:29)]
all.equal(result1, result3)

first <- Xchromosome[1:9,]
second <- Xchromosome[11:19,]
third <- Xchromosome[21:29,]
result1 <- rbind(first, second, third)
result2 <- snp.rbind(first, second, third)
all.equal(result1, result2)

result3 <- Xchromosome[c(1:9,11:19,21:29),]
all.equal(result1, result3)

first <- Xchromosome[,1:9]
second <- Xchromosome[,11:19]
third <- Xchromosome[,21:29]
result1 <- cbind(first, second, third)
result2 <- snp.cbind(first, second, third)
all.equal(result1, result2)

result3 <- Xchromosome[,c(1:9,11:19,21:29)]
all.equal(result1, result3)

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-1-23 22:45 , Processed in 0.019680 second(s), 15 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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