[R] Replacing dot with empty space

Sergey Goriatchev sergeyg at gmail.com
Tue Feb 10 10:02:25 CET 2009


OK, got it now:
sub("[.]", " ", "ED4.Comdty")


On Tue, Feb 10, 2009 at 10:01, Sergey Goriatchev <sergeyg at gmail.com> 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 not do it.
>
> Thanks in advance,
> Sergey
>



-- 
I'm not young enough to know everything. /Oscar Wilde
Experience is one thing you can't get for nothing. /Oscar Wilde
When you are finished changing, you're finished. /Benjamin Franklin
Tell me and I forget, teach me and I remember, involve me and I learn.
/Benjamin Franklin
Luck is where preparation meets opportunity. /George Patten




More information about the R-help mailing list