View source: R/merge-COMPASSContainer.R
merge.COMPASSContainer | R Documentation |
This function merges two COMPASSContainers
.
## S3 method for class 'COMPASSContainer'
merge(x, y, ...)
x |
A |
y |
A |
... |
other arguments passed to 'COMPASSContainer' call. |
## Chop the example COMPASSContainer into two, then merge it back together
CC1 <- subset(CC, trt == "Control")
CC2 <- subset(CC, trt == "Treatment")
merged <- merge(CC1, CC2)
res <- identical(CC, merge(CC1, CC2)) ## should return TRUE in this case
stopifnot( isTRUE(res) )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.