combine | R Documentation |
Combines two or more EMMs into a single object.
## S4 method for signature 'EMM'
c(x, ..., copy=TRUE, recursive = FALSE)
x |
first |
... |
further objects of the same class as |
copy |
a logical. Copy |
recursive |
a logical. If |
Returns invisibly an object of the same class as EMM
.
EMM-class
,
data("16S")
## create two EMMs for different data
emm1 <- EMM("Kullback", threshold=0.1, data=Mollicutes16S+1)
emm2 <- EMM("Kullback", threshold=0.1, data=Alphaproteobacteria16S+1)
## combine the two EMMs
emm12 <- c(emm1, emm2)
## this is the same as:
## emm12 <- copy(emm1)
## c(emm12, emm2, copy=FALSE)
## recluster states so similar states in the to EMMs will be merged
emm12r <- recluster_tNN(emm12)
op <- par(mfrow = c(1, 2), pty = "s")
plot(emm12, main="Two EMMs")
plot(emm12r, main="Two EMMs (reclustered)")
par(op)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.