coerce: Convert an object to another class

coerceR Documentation

Convert an object to another class

Description

These functions manage the relations that allow coercing an object to a given class.

Arguments

from, to

The classes between which def performs coercion. (In the case of the coerce function, these are objects from the classes, not the names of the classes, but you're not expected to call coerce directly.)

Details

The function supplied as the third argument is to be called to implement as(x, to) when x has class from. Need we add that the function should return a suitable object with class to.

Author(s)

F. Hahne, B. Ellis

Examples


 samp1 <- read.FCS(system.file("extdata","0877408774.E07", package="flowCore"))
 samp2 <- read.FCS(system.file("extdata","0877408774.B08",package="flowCore"))
 samples <-list("sample1"=samp1,"sample2"=samp2)
 experiment <- as(samples,"flowSet")


RGLab/flowCore documentation built on Aug. 26, 2024, 8:52 a.m.