SpatialExperiment-subset | R Documentation |
The subsetting method for SpatialExperiment
objects ensures
that spatial data attributes (spatialCoords
and
imgData
) are subsetted correctly to match rows and columns with
the remainder of the object.
x |
a |
i |
row indices for subsetting |
j |
column indices for subsetting |
a SpatialExperiment
object
[
:subsetting method
example(SpatialExperiment)
dim(spe)
set.seed(123)
idx <- sample(ncol(spe), 10)
sub <- spe[, idx]
dim(sub)
colData(sub)
spatialCoords(sub)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.