classMeans {twoddpcr} | R Documentation

## Get the mean of each cluster.

### Description

After classifying droplets, we can compute the mean for each class.

### Usage

    classMeans(droplets, classCol = "class")

### Arguments

`droplets` | A data frame of droplets with `Ch1.Amplitude` and `Ch2.Amplitude` columns, as well as a classification column (see the parameter `classCol`).
`classCol` | The column (name or number) from `droplets` representing the class.

### Value

A list or data frame of means of each class.

### Author(s)

Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk

### Examples

    ## Get the means of the clusters.
    aWell <- KRASdata[["E03"]]
    aWell$Cluster <- relabelClasses(aWell, classCol="Cluster")
    classMeans(aWell, classCol="Cluster")

    ## We repeat the above but with a sample with no "PP" cluster.
    aWell <- KRASdata[["H04"]]
    aWell$Cluster <- relabelClasses(aWell, classCol="Cluster")
    classMeans(aWell, classCol="Cluster")

[Package twoddpcr version 1.11.0 Index]