castSummary {twoddpcr} | R Documentation

## Makes a long form data frame into wide form.

### Description

Returns a data frame with the dependent columns prefixed with given labels (depending on the targets). All relevant columns are retained.

### Usage

    castSummary(df, ch1Label = "Mt", ch2Label = "Wt", rows = NULL)

### Arguments

`df` | A data frame created by calling `read.csv` on the raw ddPCR output.
`ch1Label` | The prefix to use for the channel 1 target. Defaults to "Mt".
`ch2Label` | The prefix to use for the channel 2 target. Defaults to "Wt".
`rows` | The number of rows to retain from the original data frame. If `NULL`, all of the wells are used. Defaults to `NULL`.

### Value

A data frame with the target rows merged.

### Author(s)

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

### Examples

    ## Cast output from Bio-Rad's QuantaSoft into wide form.
    castSummary(KRAScountsQS)

    ## Only retain selected rows.
    castSummary(KRAScountsQS, rows=c(1,4:6))

[Package twoddpcr version 1.18.0 Index]