Learn R Programming

COMPASS (version 1.10.2)

TotalCellCounts: Compute Total Cell Counts

Description

This function is used to compute total cell counts, per individual, from a COMPASSContainer.

Usage

TotalCellCounts(data, subset, aggregate = TRUE)

Arguments

data
A COMPASSContainer.
subset
An expression, evaluated within the metadata, defining the subset of data over which the counts are computed. If left unspecified, the counts are computed over all samples.
aggregate
Boolean; if TRUE we sum over the individual, to get total counts across samples for each individual.

Examples

Run this code
TotalCellCounts(CC, trt == "Treatment")
TotalCellCounts(CC, trt == "Control")
TotalCellCounts(CC)

Run the code above in your browser using DataLab