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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 22 September 2004 09:43 To: [EMAIL PROTECTED] Subject: [R] Dear Any, Is there a fonction in R to change a string to uppercase ? Thanks for all your help ______________________________________________ [EMAIL PROTECTED] 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:[EMAIL PROTECTED] http://www.kssg.com The information in this Internet email is confidential and m...{{dropped}} ______________________________________________ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html