[[.Assay | R Documentation |
Get and set feature-level meta data
## S3 method for class 'Assay'
x[[i, ..., drop = FALSE]]
## S4 replacement method for signature 'Assay,ANY,ANY,ANY'
x[[i, j, ...]] <- value
## S3 method for class 'Assay'
head(x, n = 10L, ...)
## S3 method for class 'Assay'
tail(x, n = 10L, ...)
## S4 replacement method for signature 'Assay,missing,missing,data.frame'
x[[i, j, ...]] <- value
x |
An |
i |
Name of feature-level meta data to fetch or add |
... |
Ignored |
drop |
See |
j |
Ignored |
value |
Feature-level meta data to add |
n |
Number of meta data rows to show |
[[
: The feature-level meta data for i
[[<-
: x
with value
added as i
in feature-level meta data
head
: The first n
rows of feature-level meta data
tail
: the last n
rows of feature-level meta data
v3 Assay object, validity, and interaction methods:
$.Assay()
,
Assay-class
,
Assay-validity
,
CreateAssayObject()
,
[.Assay()
,
dim.Assay()
,
dimnames.Assay()
,
merge.Assay()
,
split.Assay()
,
subset.Assay()
rna <- pbmc_small[["RNA"]]
# Pull the entire feature-level meta data data frame
head(rna[[]])
# Pull a specific column of feature-level meta data
head(rna[["vst.mean"]])
head(rna[["vst.mean", drop = TRUE]])
# `head` and `tail` can be used to quickly view feature-level meta data
head(rna)
tail(rna)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.