$.Assay | R Documentation |
Get and set layer data
## S3 method for class 'Assay'
x$i
## S3 replacement method for class 'Assay'
x$i <- value
x |
An |
i |
Name of layer data to get or set |
value |
A matrix-like object to add as a new layer |
$: Layer data for layer i
$<-
: x
with layer data value
saved as i
v3 Assay object, validity, and interaction methods:
Assay-class
,
Assay-validity
,
CreateAssayObject()
,
[.Assay()
,
[[.Assay()
,
dim.Assay()
,
dimnames.Assay()
,
merge.Assay()
,
split.Assay()
,
subset.Assay()
rna <- pbmc_small[["RNA"]]
# Fetch a layer with `$`
rna$data[1:10, 1:4]
# Add a layer with `$`
rna$data <- rna$counts
rna$data[1:10, 1:4]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.