Re: [R] Replacing dot with empty space

2009-02-10 Thread Sergey Goriatchev
Thanks, Gabor. You are always very helpful. On Tue, Feb 10, 2009 at 12:42, Gabor Grothendieck wrote: > Also, try these alternatives: > > sub(".", " ", x, fixed = TRUE) > chartr(".", " ", x) > > > On Tue, Feb 10, 2009 at 4:02 AM, Sergey Goriatchev wrote: >> OK, got it now: >> sub("[.]", " ", "ED4

Re: [R] Replacing dot with empty space

2009-02-10 Thread Gabor Grothendieck
Also, try these alternatives: sub(".", " ", x, fixed = TRUE) chartr(".", " ", x) On Tue, Feb 10, 2009 at 4:02 AM, Sergey Goriatchev wrote: > OK, got it now: > sub("[.]", " ", "ED4.Comdty") > > > On Tue, Feb 10, 2009 at 10:01, Sergey Goriatchev wrote: >> Hello, everyone >> >> How do I replace d

Re: [R] Replacing dot with empty space

2009-02-10 Thread Sergey Goriatchev
OK, got it now: sub("[.]", " ", "ED4.Comdty") On Tue, Feb 10, 2009 at 10:01, Sergey Goriatchev wrote: > Hello, everyone > > How do I replace dot with empty space in "ED4.Comdty"? > I need to get "ED4 Comdty" > tried sub() in many different ways, like sub({.}, " ", "ED4.Comdty") > etc but could n