Description Usage Arguments Value Examples
View source: R/stringmanipulation.R
A function for getting patient ID from biobank labels
1 | patientIDFromSample(sampleNames, asNum = TRUE)
|
asNum |
Should the results be return as integers, i.e. numeric. Defaults to TRUE |
samplesName |
One or more biobank labels. String pattern: XNNXNNNNNX, where X = letter, N = number, e.g. P28B00005E |
a vector with patient ids
1 2 3 4 | sampleNames = c("P04A08417A", "P04A08417A_postfix", "prefix_P04A08417A_postfix")
patientIDFromSample(sampleNames)
returns: 8417, 8417, 8417
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.