[R] how to GREP out a string like this......THANKS.

Hon Kit (Stephen) Wong honkit at stanford.edu
Tue May 21 01:45:31 CEST 2013


Dear ALl,

I hope you could help me out on this simple problem. I have many thousand lines like this:
NM_019397 // Egfl6 // EGF-like-domain, multiple 6 // X F5|X 71.5 cM // 54156

I want to extract the string inside the first // //, in this case is Egf16. 


How do I apply grep function?

Thanks.

Stephen HK Wong

Stephen HK Wong
Research Associate,Cleary Lab
Lab Phone: 650-723-5340
MC 5457 
Lokey Stem Cell Research Building 
265 Campus Drive, Rm. G2035 
Stanford, California 94305-5324



More information about the R-help mailing list