coerce: Force an object to belong to a class

coerceR Documentation

Force an object to belong to a class

Description

Force an object to belong to a class

Note

Updated 2023-08-16.

Examples

data(Seurat, SingleCellExperiment_Seurat, package = "AcidTest")

## SingleCellExperiment to Seurat ====
from <- SingleCellExperiment_Seurat
to <- as(from, "Seurat")
class(to)
print(to)

## Seurat to SingleCellExperiment ====
from <- Seurat
to <- as(from, "SingleCellExperiment")
class(to)
print(to)

steinbaugh/pointillism documentation built on Oct. 13, 2023, 10:43 p.m.