I have a vector of letters like c("a", "B", "c"). Is there any R function to force all elements to lower-cap ? Thanks, -- View this message in context: http://old.nabble.com/How-to-make-all-elements-all-elements-lower-cap---tp26365794p26365794.html Sent from the R help mailing list archive at Nabble.com.
try this:> x <- c("a", "B", "c") > ?tolower > tolower(x)[1] "a" "b" "c">On Sun, Nov 15, 2009 at 8:45 PM, RON70 <ron_michael70 at yahoo.com> wrote:> > I have a vector of letters like c("a", "B", "c"). Is there any R function to > force all elements to lower-cap ? > > Thanks, > -- > View this message in context: http://old.nabble.com/How-to-make-all-elements-all-elements-lower-cap---tp26365794p26365794.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >-- Jim Holtman Cincinnati, OH +1 513 646 9390 What is the problem that you are trying to solve?
Jorge Ivan Velez
2009-Nov-16 01:52 UTC
[R] How to make all elements all elements lower-cap ?
Hi Ron, Yes. Take a look at ?tolower HTH, Jorge On Sun, Nov 15, 2009 at 8:45 PM, RON70 <> wrote:> > I have a vector of letters like c("a", "B", "c"). Is there any R function > to > force all elements to lower-cap ? > > Thanks, > -- > View this message in context: > http://old.nabble.com/How-to-make-all-elements-all-elements-lower-cap---tp26365794p26365794.html > Sent from the R help mailing list archive at Nabble.com. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]