
The following function will do it. But be warned it will only work if all
the input strings are lower case.


Make.To.Upper.Case<-function(my.string){

paste(LETTERS[match(strsplit(my.string,"")[[1]],letters)],collapse="")

}

Make.To.Upper.Case("jhjhaskjdakdsj")

> [1] "JHJHASKJDAKDSJ"




-----Original Message-----
From: pbrouilly@gphy.campus.univ-poitiers.fr
[mailto:pbrouilly@gphy.campus.univ-poitiers.fr] 
Sent: 22 September 2004 09:43
To: r-help@stat.math.ethz.ch
Subject: [R]

Dear Any,

Is there a fonction in R to change a string to uppercase ?

Thanks for all your help

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide!
http://www.R-project.org/posting-guide.html


KSS Ltd
Seventh Floor  St James's Buildings  79 Oxford Street  Manchester  M1 6SS  England
Company Registration Number 2800886
Tel: +44 (0) 161 228 0040	Fax: +44 (0) 161 236 6305
mailto:kssg@kssg.com		http://www.kssg.com


The information in this Internet email is confidential and m...{{dropped}}


