Learn R Programming

ncdfFlow (version 2.18.0)

rbind2,ncdfFlowList,ANY-method: combine multiple ncdfFlowSet objects into one

Description

Similar to flowCore:rbind2. But one needs to first construct a ncdfFlowList and then apply rbind2 to it instead of merging them pairwise

Usage

"rbind2"(x, ncdfFile = tempfile(pattern = "ncfs"), dim = 2, compress = 0, samples = NULL)

Arguments

x
ncdfFlowList
ncdfFile
character see details in read.ncdfFlowset when all the ncdfFlowSets shared the same cdf file, by supplying this argument, it will use the existing cdf and avoid writing to it unneccessarily.
dim
integer see details in read.ncdfFlowset.
compress
integer see details in read.ncdfFlowset.
samples
character the vector of sample names which determine the physical sample storage order in original cdf file. Default is NULL, which derives from the given ncdfFlowSet objects.

Value

a new ncdfFlowSet with a new cdf file that combines multiple raw datasets.

Examples

Run this code
library(ncdfFlow)
data(GvHD)

nc1 <- ncdfFlowSet(GvHD[1:2])
nc2 <- ncdfFlowSet(GvHD[3:4])
nc3 <- ncdfFlowSet(GvHD[5:6])
ncfslist <- ncdfFlowList(list(nc1,nc2,nc3))
nc4 <- rbind2(ncfslist)
nc4

Run the code above in your browser using DataLab