merge.COMPASSContainer: Merge Two COMPASSContainers

Description Usage Arguments Examples

View source: R/merge-COMPASSContainer.R

Description

This function merges two COMPASSContainers.

Usage

1
2
## S3 method for class 'COMPASSContainer'
merge(x, y, ...)

Arguments

x

A COMPASSContainer.

y

A COMPASSContainer.

...

other arguments passed to 'COMPASSContainer' call.

Examples

1
2
3
4
5
6
## 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) )

RGLab/COMPASS documentation built on Feb. 11, 2021, 3:23 p.m.