Re: [R] remove numbers from string of characters

2010-10-18 Thread Ted Harding
On 18-Oct-10 15:03:22, Henrique Dallazuanna wrote: > See agrep function: > > agrep("Frozen Niagara Entrance", "001a Frozen Niagara Entrance") > 0 > > To remove the numbers: > > gsub("\\d", "", "001a Frozen Niagara Entrance") That results in "a Frozen Niagara Entrance", which is not what he said

Re: [R] remove numbers from string of characters

2010-10-18 Thread Ted Harding
On 18-Oct-10 14:58:05, kurt_h...@nps.gov wrote: > Greetings > I want to remove numbers from a string of characters that > identify sites so that I can merge two data frames. > For example, a site in one frame is called > "001a Frozen Niagara Entrance" whereas the same site > in the other data frame

Re: [R] remove numbers from string of characters

2010-10-18 Thread Henrique Dallazuanna
See agrep function: agrep("Frozen Niagara Entrance", "001a Frozen Niagara Entrance") > 0 To remove the numbers: gsub("\\d", "", "001a Frozen Niagara Entrance") On Mon, Oct 18, 2010 at 12:58 PM, wrote: > Greetings > I want to remove numbers from a string of characters that identify > si

[R] remove numbers from string of characters

2010-10-18 Thread Kurt_Helf
Greetings I want to remove numbers from a string of characters that identify sites so that I can merge two data frames. For example, a site in one frame is called "001a Frozen Niagara Entrance" whereas the same site in the other data frame is called "Frozen Niagara Entrance". It seems to m