Re: [R] Replacing part of delimited string with R's regex

2013-07-10 Thread arun
nesday, July 10, 2013 3:02 AM Subject: [R] Replacing part of delimited string with R's regex I have the following list of strings: name <- c("hsa-miR-555p","hsa-miR-519b-3p","hsa-let-7a") What I want to do is for each of the above strings replace the text after

Re: [R] Replacing part of delimited string with R's regex

2013-07-10 Thread David Winsemius
On Jul 10, 2013, at 12:02 AM, Gundala Viswanath wrote: > I have the following list of strings: > > name <- c("hsa-miR-555p","hsa-miR-519b-3p","hsa-let-7a") > > What I want to do is for each of the above strings > replace the text after second delimiter with "zzz". > Yielding: > > hsa-miR-zzz >

[R] Replacing part of delimited string with R's regex

2013-07-10 Thread Gundala Viswanath
I have the following list of strings: name <- c("hsa-miR-555p","hsa-miR-519b-3p","hsa-let-7a") What I want to do is for each of the above strings replace the text after second delimiter with "zzz". Yielding: hsa-miR-zzz hsa-miR-zzz hsa-let-zzz What's the way to do it? [[alternative HTM