Learn R Programming

rliger (version 2.0.1)

sub-sub-liger: Get cell metadata variable

Description

Get cell metadata variable

Usage

# S3 method for liger
[[(x, i, ...)

Value

If i is given, the selected metadata will be returned; if it is missing, the whole cell metadata table in S4Vectors::DataFrame class will be returned.

Arguments

x

A liger object

i

Name or numeric index of cell meta data to fetch

...

Anything that S4Vectors::DataFrame method allows.

Examples

Run this code
# Retrieve whole cellMeta
pbmc[[]]
# Retrieve a variable
pbmc[["dataset"]]

Run the code above in your browser using DataLab