getMetas: Returns the names of all meta.data slots of a target object.

Description Usage Arguments Value Author(s) See Also Examples

View source: R/meta-getters.R

Description

Returns the names of all meta.data slots of a target object.

Usage

1
getMetas(object, names.only = TRUE)

Arguments

object

A Seurat, SingleCellExperiment, or SummarizedExperiment object.

names.only

Logical, TRUE by default, which sets whether just the names should be output versus the entire metadata dataframe.

Value

A string vector of the names of all metadata slots of the object, or alternatively the entire dataframe of metadatas if names.only is set to FALSE

Author(s)

Daniel Bunis

See Also

isMeta for checking if certain metadata slots exist in an object

meta for obtaining the contants of metadata slots

Examples

1
2
3
4
5
6
7
example(importDittoBulk, echo = FALSE)

# To see all metadata slots of an object
getMetas(myRNA)

# To retrieve the entire metadata matrix
getMetas(myRNA, names.only = FALSE)

dittoSeq documentation built on April 17, 2021, 6:01 p.m.