TotalCellCounts {COMPASS} | R Documentation

## 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

    TotalCellCounts(CC, trt == "Treatment")
    TotalCellCounts(CC, trt == "Control")
    TotalCellCounts(CC)

[Package COMPASS version 1.20.1 Index]