as.flowSet {ncdfFlow} | R Documentation

## convert from a `ncdfFlowSet` to a `flowSet`

### Description

The main purpose of this API is to convert the archived data (stored in `ncdfFlowSet`) to `flowSet` when the speed is more concerned than memory effieciency. Although `ncdfFlowSet` is designed to minimize the disk-IO cost, so usually it is not necessary to do such coersion.

### Usage

    as.flowSet(from, top)

### Arguments

`from` | a `ncdfFlowSet`
`top` | `integer` specifies a certain number of samples are evenly selected for the coersion. If this argument is missing, then coerce all the samples within the `ncdfFlowSet`. It is to be used with caution because it can incur the huge memory consumption given the `flowSet` is all-in-memory data structure.

### Examples

    data(GvHD)
    nc1 <- ncdfFlowSet(GvHD[1:4])
    fs <- as.flowSet(nc1)

[Package ncdfFlow version 2.33.2 Index]