sortWells {twoddpcr} | R Documentation

## Return given well names sorted.

### Description

Well names can be sorted according to the leading letter or the trailing digit.

### Usage

    sortWells(wellNames, sortByLetter)

### Arguments

`wellNames` | The well names to sort.
`sortByLetter` | If `TRUE`, the resulting list is sorted by the letter in the well names first, e.g. "A02" comes before "B01". If `FALSE`, the result is sorted by the numeric component of the well names first, e.g. "B01" comes before "A02". Defaults to `FALSE`.

### Value

The well names sorted.

### Author(s)

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

### Examples

    ## Use the KRASdata dataset as an example.
    plate <- ddpcrPlate(wells=KRASdata)
    wellNames <- names(plate)

    ## Sample sorting.
    sortWells(wellNames=wellNames, sortByLetter=FALSE)
    sortWells(wellNames=wellNames, sortByLetter=TRUE)

[Package twoddpcr version 1.10.0 Index]