coerce | R Documentation |
Force an object to belong to a class
Updated 2023-08-16.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.