richness: richness

Description Usage Arguments Value Author(s)

Description

Computes the richness (total number of unique elements) in a sample

Usage

1

Arguments

x

A numeric vector or tcr object

merge

If x is a tcr object, the output will be a tcr object with the richness merged into the metadata.

Value

If x is a vector, the function returns the richness If x is a tcr object, and merge=T, then the function returns a tcr object with richness included in the metadata for all samples.

Author(s)

Alexander Hopkins


ahopki14/tcrSeqR documentation built on May 16, 2019, 6:56 p.m.