Learn R Programming

COMPASS (version 1.10.2)

merge.COMPASSContainer: Merge Two COMPASSContainers

Description

This function merges two COMPASSContainers.

Usage

"merge"(x, y, ...)

Arguments

x
A COMPASSContainer.
y
A COMPASSContainer.
...
other arguments passed to 'COMPASSContainer' call.

Examples

Run this code
## 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) )

Run the code above in your browser using DataLab