merge(CALIB)
merge()所属R语言包:CALIB
Merge RGList\_CALIB or SpikeList objects
合并RGList \ _CALIB或SpikeList对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Merge two RGList_CALIB objects or two SpikeList objects in possibly irregular order.
合并两个RGList_CALIB对象可能是不规则的顺序或两个SpikeList对象。
用法----------Usage----------
## S3 method for class 'RGList_CALIB'
merge(x,y,...)
参数----------Arguments----------
参数:x
an RGList_CALIB object or an SpikeList object.
RGList_CALIB对象或SpikeList对象。
参数:y
corresponding RGList_CALIB object or SpikeList object. Has the same genes or spikes as x, possibly in a different order,but with different arrays.
对应的RGList_CALIB对象或SpikeList对象。 x可能以不同的顺序,但不同的阵列具有相同的基因或尖峰。
参数:...
other arguments can be used in merge in the base packge.
其他参数可用于在merge碱基装箱率。
Details
详情----------Details----------
RGList_CALIB and SpikeList
RGList_CALIB和SpikeList
objects are list objects containing numeric matrices with the same dimensions. The RGLists\_CALIB or SpikeLists are merged by merging each of the components by row names or, if there are no row names, by IDs in the genes component. Unlike when using cbind, row names are not required to be in the same order or to be unique. In the case of repeated row names, the order of the rows with repeated names in preserved. This means that the first occurrence of each name in x$R is matched with the first occurrence of the same name in y$R, the second with the second, and so on. The final vector of row names is the same as in x.
对象列表对象包含具有相同尺寸的数字矩阵。 RGLists \ _CALIB或SpikeLists行名称中的每个组件合并的合并,或者如果没有行名,由genes组件的ID。时使用cbind,行名,不要求是相同的顺序,或者是唯一的不同。在重复的行名的情况下,为了在保留重复的名字行。这意味着同名的第一次出现在匹配的每个x$R名称首次出现与y$R第二,第二,依此类推。行名称的最终向量是作为x相同。
值----------Value----------
An merged object of the same class as x and y with the same components as x. Components matrices have the same row names as in x but columns from y as well as x.
同一类的合并对象x和yx相同的组件。组件矩阵x但是y以及x列有相同的行名。
注意----------Note----------
If the RGList_CALIB or SpikeList objects contain the same number of genes or spikes in the same order then the appropriate function to combine them is cbind rather than merge.
RGList_CALIB或SpikeList对象包含在同一顺序相同数量的基因或尖峰然后结合相应的功能是cbind而不是merge如果。
作者(S)----------Author(s)----------
Hui Zhao
参考文献----------References----------
<h3>See Also</h3> <code>merge</code> in the base package
举例----------Examples----------
R1 <- G1 <- matrix(1:8,4,2)
rownames(R1) <- rownames(G1) <- c("g1","g1","g2","g3")
colnames(R1) <- colnames(G1) <- c("a1","a2")
RG1 <- new("RGList_CALIB",list(R=R1,G=G1))
R2 <- G2 <- matrix(9:16,4,2)
rownames(R2) <- rownames(G2) <- c("g2","g3","g1","g1")
colnames(R2) <- colnames(G2) <- c("a3","a4")
RG2 <- new("RGList_CALIB",list(R=R2,G=G2))
RG12 <- merge(RG1,RG2)
RG21 <- merge(RG2,RG1)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|