Re: [R] How to change letters after space into capital letters

From: Gabor Grothendieck <>
Date: Mon 11 Apr 2005 - 21:31:00 EST

On Apr 11, 2005 6:22 AM, Wolfram Fischer <> wrote:
> What is the easiest way to change within vector of strings
> each letter after a space into a capital letter?
> E.g.:
> c( "this is an element of the vector of strings", "second element" )
> becomes:
> c( "This Is An Element Of The Vector Of Strings", "Second Element" )
> My reason to try to do this is to get more readable abbreviations.
> (A suggestion would be to add an option to abbreviate() which changes
> letters after space to uppercase letters before executing the abbreviation
> algorithm.)

Look for the thread titled

  String manipulation---mixed case

in the r-help archives. mailing list PLEASE do read the posting guide! Received on Mon Apr 11 21:39:37 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:06 EST