Re: [R] Extract upper case letters

2012-06-28 Thread Rui Barradas
Hello, Try the following. txt <- "TheWeatherIsVeryNice" Up <- strsplit(txt, "[[:lower:]]*") Up[Up != ""] Hope this helps, Rui Barradas Em 27-06-2012 20:15, mdvaan escreveu: t <- "TheWeatherIsVeryNice" How do I extract the upper case letters? - TWIVN Thanks! -- View this message in conte

Re: [R] Extract upper case letters

2012-06-27 Thread R. Michael Weylandt
How do you want your output? If you want a character vector of lowercase letters, just use gsub("[^::A-Z::]","", t) to substitute "" for all non-uppercase characters. strsplit() can lead you to a vector of the single-letter upper case letters. Best, Michael On Wed, Jun 27, 2012 at 2:15 PM, mdvaan

[R] Extract upper case letters

2012-06-27 Thread mdvaan
t <- "TheWeatherIsVeryNice" How do I extract the upper case letters? - TWIVN Thanks! -- View this message in context: http://r.789695.n4.nabble.com/Extract-upper-case-letters-tp4634664.html Sent from the R help mailing list archive at Nabble.com. __