sortWells: Return given well names sorted.

Description Usage Arguments Value Author(s) Examples

View source: R/wellNameSort.R

Description

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

Usage

1
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

1
2
3
4
5
6
7
## 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)

twoddpcr documentation built on Nov. 8, 2020, 5:49 p.m.