Re: [R] changing character strings with hash marks

2012-12-13 Thread arun
p@r-project.org" Sent: Thursday, December 13, 2012 5:38 PM Subject: Re: [R] changing character strings with hash marks On 13.12.2012 22:30, simona mancini wrote: > Hi R users, > > I am quite new to R and I don't know how to deal with this (surely) easy > issue. I need t

Re: [R] changing character strings with hash marks

2012-12-13 Thread Bert Gunter
Simona: If you intend to work with text, you need to learn about regular expressions. There are many tutorials on this topic on the web. Go search. Then learn about how R handles them via: ?regex ## at the R prompt Then ask your question more clearly, although by this time you'll probably have

Re: [R] changing character strings with hash marks

2012-12-13 Thread Uwe Ligges
On 13.12.2012 22:30, simona mancini wrote: Hi R users, I am quite new to R and I don't know how to deal with this (surely) easy issue. I need to replace words in sentences with as many hash marks as the number of characters per each word, as in the following example: Mary plays football ###