getMetas {dittoSeq} | R Documentation

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

### Description

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

### Usage

    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

    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)

[Package dittoSeq version 1.6.0 Index]