combine.TRAMPsamples(TRAMPR)
combine.TRAMPsamples()所属R语言包:TRAMPR
Combine TRAMPsamples Objects
结合TRAMPsamples对象
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Combines two TRAMPsamples objects into one large TRAMPsamples object containing all the samples for both
两个TRAMPsamples对象合并成一个大的TRAMPsamples对象,包含所有的样本都
用法----------Usage----------
## S3 method for class 'TRAMPsamples'
combine(x, y, rewrite.sample.pk=FALSE, ...)
参数----------Arguments----------
参数:x, y
TRAMPsamples objects, containing TRFLP patterns.
TRAMPsamples对象,包含TRFLP模式。
参数:rewrite.sample.pk
Logical: If the new sample data (y) contains sample.pk values that conflict with those in the original TRAMPsamples object (x), should the new samples be renumbered? If this is TRUE, do not rely on any sample.pk values staying the same for the newly added samples. sample.pk values in the original TRAMPsamples object will never be changed.
逻辑:如果新的样本数据(y)sample.pk值冲突与原TRAMPsamples对象(x)的,如果新的样本进行重新编号?如果这是TRUE,不依赖于任何sample.pk新加入的样本值保持相同。 sample.pk值在原TRAMPsamples对象将永远不会改变的。
参数:...
Further arguments passed to or from other methods.
进一步的参数传递给其他方法。
Details
详细信息----------Details----------
For a discussion of rewrite.sample.pk, see the comments on rewrite.knowns.pk in the Details of combine.TRAMPknowns.
rewrite.sample.pk的讨论,看到更多的关于rewrite.knowns.pk的combine.TRAMPknowns的详细信息。
The data and info elements of the resulting TRAMPsamples object will have union of the columns present in both sets of samples.
data和info元素所得TRAMPsamples对象将有两个样本集的列本联盟。
If any additional elements exist as part of the second TRAMPsamples object (e.g. passed as ... to TRAMPsamples), these will be ignored with a warning (see Example).
如果有任何额外的元素存在的一部分第二TRAMPsamples对象(例如,通过为...到TRAMPsamples),这些都将被忽略警告(见例)。
参见----------See Also----------
combine.TRAMPknowns, the method for
combine.TRAMPknowns,该方法为
实例----------Examples----------
data(demo.samples)
## Let's split the original samples database in two, and recombine.[#让我们在两个分裂的原始样本数据库,和重组。]
demo.samples.a <- demo.samples[head(labels(demo.samples), 10)]
demo.samples.b <- demo.samples[tail(labels(demo.samples), 10)]
## Combining these is easy:[#结合这些是很容易的:]
demo.samples.c <- combine.TRAMPsamples(demo.samples.a, demo.samples.b)
## There is a warning message because demo.samples.b contains extra[#是一个警告消息,因为demo.samples.b包含了额外的]
## elements:[#元素:]
names(demo.samples.b)
## In this case, these objects should not be combined, but in other[#在这种情况下,这些对象不应该被合并,但在其他]
## cases it may be necessary to rbind() the extra objects together:[#情况下,它可能是必要的rbind()的额外的对象一起:]
## Not run: [#不运行:]
demo.samples.c$soilcore <- rbind(demo.samples.a$soilcore,
demo.samples.b$soilcore)
## End(Not run)[#(不执行)]
## This must be done manually, since there is no way of telling what[#这必须手工完成,也没办法说什么]
## should be done automatically. Ideas/contributions are welcome here.[#应自动完成。意见/贡献的欢迎。]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|