Learn R Programming

SeuratObject (version 5.0.2)

MatchCells: Match Cells

Description

Match Cells

Usage

MatchCells(new, orig, ordered = FALSE)

# S3 method for character MatchCells(new, orig, ordered = FALSE)

# S3 method for `NULL` MatchCells(new, orig, ordered = FALSE)

# S3 method for numeric MatchCells(new, orig, ordered = FALSE)

Value

A numeric vector with new cells in order of the original cells; if no match can be found, returns NULL

Arguments

new

A vector of new cells

orig

A vector of existing cells

ordered

Sort the result to the same order as orig