rbind2,ncdfFlowList,ANY-method {ncdfFlow} | R Documentation

## 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

    ## S4 method for signature 'ncdfFlowList,ANY'
    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

    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

[Package ncdfFlow version 2.33.2 Index]