I have a string in R which is something like:
File_ABC777_PatientId789.DATA
or can be something like: File_ABC7878787_234_PatientId892.DATA
I want to extract the part of the string that is in between “PatientId” and “.DATA” …How do I do this in R ? In C# or other languages this is really easy and it’s usually done using a String POS Function … But I can’t seem to find a similar function in R …any thoughts ?
Cheers !!!
MadSeb
You could use
?sub: