extractWellNames {twoddpcr} | R Documentation |
If each of the given filenames are of the form "<PlateName>_<WellName>_Amplitude.csv", where <WellName> is of the form A01, B01, etc., then this function can extract the <WellName> component. Otherwise, the whole file name is assumed to be the well name.
extractWellNames(filenames)
filenames |
A character vector of filenames with .csv extension. |
A character vector of well names.
Anthony Chiu, anthony.chiu@cruk.manchester.ac.uk
## Get the well names (recognised format). extractWellNames(c("Sample_Plate_Name_G02_Amplitude.csv", "Sample_Plate_Name_H02_Amplitude.csv", "Sample_Plate_Name_A03_Amplitude.csv", "Sample_Plate_Name_B03_Amplitude.csv")) ## Get the well names (unrecognised format). extractWellNames(c("Sample_G02.csv", "Sample_H02.csv", "Sample_A03.csv", "Sample_B03.csv"))