Learn R Programming

SRTsim (version 0.99.7)

subsetSRT: Subset SRT object based on domain labels of interest

Description

Subset SRT object based on domain labels of interest

Usage

subsetSRT(simsrt, sel_label = NULL)

Value

Returns a spatialExperiment-based object

Arguments

simsrt

A SRTsim object

sel_label

A vector of selected domain labels used for the data generation

Examples

Run this code

## Create a simSRT object
toySRT  <- createSRT(count_in=toyData$toyCount,loc_in = toyData$toyInfo)
set.seed(1)
## Only Keep the Spatial Locations labelled as "A" in the reference data
subtoySRT <- subsetSRT(toySRT,sel_label = "A")

Run the code above in your browser using DataLab