extractPlateName: Try to get plate name from a filename.

Description Usage Arguments Value Author(s) Examples

View source: R/readCSVDataFrame.R

Description

If the given filename is of the form "<PlateName>_<WellName>_Amplitude.csv", where <WellName> is of the form A01, B01, etc., then this function can extract the <PlateName> component. Otherwise, an empty string is returned.

Usage

1
extractPlateName(filename)

Arguments

filename

A character string corresponding to a filename with .csv extension.

Value

A character string corresponding to the plate name. This is "" if filename is not in a known format.

Author(s)

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

Examples

1
2
3
4
5
## Get the plate name (recognised format).
extractPlateName(c("Sample_Plate_Name_G02_Amplitude.csv"))

## Get the plate name (unrecognised format).
extractPlateName(c("Sample_G02.csv"))

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