subset | R Documentation |
AnyHermesData
ObjectsThis method subsets AnyHermesData
objects, based on expressions involving the
rowData
columns and the colData
columns.
x |
( |
subset |
( |
select |
( |
The subsetted AnyHermesData
object.
Note that this just inherits
SummarizedExperiment::subset,SummarizedExperiment-method()
.
a <- hermes_data
a
# Subset both genes and samples.
subset(a, subset = low_expression_flag, select = DISCSTUD == "N")
# Subset only genes.
subset(a, subset = chromosome == "2")
# Subset only samples.
subset(a, select = AGE > 18)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.