extractPlateName {twoddpcr} | R Documentation

## Try to get plate name from a filename.

### 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

    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

    ## 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"))

[Package twoddpcr version 1.11.0 Index]