Re: [R] Toggle cASE

2011-12-05 Thread Tonio
Thanks a lot Eik!   That is exactly what I was looking for.   Best Antonio Fra: Eik Vettorazzi Cc: "r-help@R-project.org" Sendt: 23:21 mandag den 5. december 2011 Emne: Re: [R] Toggle cASE Hi Antonio, how about this: txt2 <- "useRs m

Re: [R] Toggle cASE

2011-12-05 Thread Eik Vettorazzi
Hi Antonio, how about this: txt2 <- "useRs may fly into JFK or laGuardia" chartr("a-zA-Z", "A-Za-z", txt2) Cheers. Am 05.12.2011 08:11, schrieb Tonio: > Hello R-help list, > > I am looking for way to toggle the case of the characters like a flip-flop; > that is from ''Hello'' to "hELLO" or v

[R] Toggle cASE

2011-12-04 Thread Tonio
Hello R-help list,   I am looking for way to toggle the case of the characters like a flip-flop; that is from ''Hello'' to "hELLO" or vice versa.   I know that there are a number of functions like casefold, tolower, toupper, etc. but these functions change the case in an uniform way.   Thanks in