Re: [R] gsub regex simplification

2013-05-08 Thread Gabor Grothendieck
On Wed, May 8, 2013 at 5:08 AM, Thaler,Thorn,LAUSANNE,Applied Mathematics wrote: > Dear all, > > I want to use gsub to change a vector of strings. Basically, I want to > replace any dot by a space, remove the possibly appended ".f" and I want to > capitalize each word. I did that by chaining mul

[R] gsub regex simplification

2013-05-08 Thread Thaler,Thorn,LAUSANNE,Applied Mathematics
Dear all, I want to use gsub to change a vector of strings. Basically, I want to replace any dot by a space, remove the possibly appended ".f" and I want to capitalize each word. I did that by chaining multiple gsubs together, but I was wondering (for the sake of learning - maybe the current ve