I would like to know how to convert a string with characters to all uppercase or all lowercase? If anyone could let me know if there exists a function in R for the conversion, that will be very helpful. Regards, Suman [[alternative HTML version deleted]]
On 20/08/2008, at 4:19 PM, suman Duvvuru wrote:> I would like to know how to convert a string with characters to all > uppercase or all lowercase? If anyone could let me know if there > exists a > function in R for the conversion, that will be very helpful.?tolower ###################################################################### Attention:\ This e-mail message is privileged and confid...{{dropped:9}}
Use toupper or tolower (see ?toupper, ?tolower) --- On Wed, 20/8/08, suman Duvvuru <duvvuru.suman at gmail.com> wrote:> From: suman Duvvuru <duvvuru.suman at gmail.com> > Subject: [R] Conversion - lowercase to Uppercase letters > To: r-help at r-project.org > Received: Wednesday, 20 August, 2008, 2:19 PM > I would like to know how to convert a string with characters > to all > uppercase or all lowercase? If anyone could let me know if > there exists a > function in R for the conversion, that will be very > helpful. > > Regards, > Suman > > [[alternative HTML version deleted]] > > ______________________________________________ > 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.
see ?gsub and loook at the last examle>>> "suman Duvvuru" <duvvuru.suman at gmail.com> 20/08/2008 05:19 >>>I would like to know how to convert a string with characters to all uppercase or all lowercase? If anyone could let me know if there exists a function in R for the conversion, that will be very helpful. Regards, Suman [[alternative HTML version deleted]] ______________________________________________ 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. ******************************************************************* This email and any attachments are confidential. Any use...{{dropped:8}}
check also ?toupper ?tolower Best, Dimitris Quoting S Ellison <S.Ellison at lgc.co.uk>:> see ?gsub and loook at the last examle > > >>>> "suman Duvvuru" <duvvuru.suman at gmail.com> 20/08/2008 05:19 >>> > I would like to know how to convert a string with characters to all > uppercase or all lowercase? If anyone could let me know if there exists > a > function in R for the conversion, that will be very helpful. > > Regards, > Suman > > [[alternative HTML version deleted]] > > ______________________________________________ > 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. > > ******************************************************************* > This email and any attachments are confidential. Any use...{{dropped:8}} > > ______________________________________________ > 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. > >-- Dimitris Rizopoulos Biostatistical Centre School of Public Health Catholic University of Leuven Address: Kapucijnenvoer 35, Leuven, Belgium Tel: +32/(0)16/336899 Fax: +32/(0)16/337015 Web: http://med.kuleuven.be/biostat/ http://perswww.kuleuven.be/dimitris_rizopoulos/ Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm