Re: [R] Help with replacing a substring in a string

2010-07-19 Thread Nikhil Kaza
gsub(".", " ", "abc.degg.hijk", fixed=T) On Jul 19, 2010, at 7:37 AM, Tolga I Uzuner wrote: Actually, I think I got it, need to use gsub. From: Tolga I Uzuner Sent: 19 July 2010 12:11 To: 'r-help@r-project.org' Subject: Help with replacing a substring in a string Dear R Users, I am trying to

Re: [R] Help with replacing a substring in a string

2010-07-19 Thread Martyn Byng
010 12:38 To: r-help@r-project.org Subject: Re: [R] Help with replacing a substring in a string Actually, I think I got it, need to use gsub. From: Tolga I Uzuner Sent: 19 July 2010 12:11 To: 'r-help@r-project.org' Subject: Help with replacing a substring in a string Dear R Users, I am

Re: [R] Help with replacing a substring in a string

2010-07-19 Thread Tolga I Uzuner
Actually, I think I got it, need to use gsub. From: Tolga I Uzuner Sent: 19 July 2010 12:11 To: 'r-help@r-project.org' Subject: Help with replacing a substring in a string Dear R Users, I am trying to replace a substring in a string with something else. For example: if we have "abc.degg.hijk" I