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

2013-05-20 Thread arun
ot;    "Egfl7 domain" A.K. - Original Message - From: Hon Kit (Stephen) Wong To: r-help@r-project.org Cc: Sent: Monday, May 20, 2013 7:45 PM Subject: [R] how to GREP out a string like this..THANKS. Dear ALl, I hope you could help me out on this simple problem. I have man

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

2013-05-20 Thread William Dunlap
# wrong answer if length(lines)==0 Bill Dunlap Spotfire, TIBCO Software wdunlap tibco.com > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On > Behalf > Of David Winsemius > Sent: Monday, May 20, 2013 5:17 PM > To: Hon Kit (Ste

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

2013-05-20 Thread David Winsemius
On May 20, 2013, at 4:45 PM, Hon Kit (Stephen) Wong wrote: > 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 fir

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

2013-05-20 Thread Hon Kit (Stephen) Wong
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.