search for: cb01_0171_03

Displaying 1 result from an estimated 1 matches for "cb01_0171_03".

2007 Mar 09
6
Extracting text from a character string
I have a set of character strings like below: > data3[1] [1] "CB01_0171_03-27-2002-(Sample 26609)-(126)" > I am trying to extract the text 03-27-2002 and convert this into a date for the same record. I keep looking at the grep function, however I cannot quite get it to work. grep("\d\d-\d\d-\d\d\d\d",data3[1],perl=TRUE,value=TRUE) Any...