positiveCounts {twoddpcr} | R Documentation

## Get a vector of droplet positive and negative counts.

### Description

Take a vector of classes and return a vector of positive and negative counts that is compatible with ddPCR analysis.

### Usage

    positiveCounts(cl)

### Arguments

`cl` | A vector of classes that correspond to droplet amplitude data. The vector should only contain the values "PP", "PN", "NP" or "NN".

### Value

A vector corresponding to "PP", "PN", "NP" and "NN".

### Author(s)

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

### Examples

    ## Take a data frame and make it into the right format.
    aWell <- KRASdata[["E03"]]
    aWell$Cluster <- relabelClasses(aWell, classCol="Cluster")

    ## Count the number of droplets in each cluster.
    positiveCounts(aWell$Cluster)

[Package twoddpcr version 1.18.0 Index]