Re: [R] problem with intToChar

2010-06-01 Thread Changbin Du
Thanks to all! Yes, LETTERS[outcome.predict] works! I appreciated your guys help! On Tue, Jun 1, 2010 at 1:53 PM, Henrique Dallazuanna wrote: > use "[" not "(" > > > On Tue, Jun 1, 2010 at 5:50 PM, Changbin Du wrote: > >> It does not work. >> >> >> > outcome.label<-LETTERS(outcome.predict

Re: [R] problem with intToChar

2010-06-01 Thread Changbin Du
the intToChar function is in the package "R.oo" I AM try to plot the SOM result, use the outcome.labels as labels in the following plot command. outcome.xyf <- predict(final.xyf)$unit.prediction outcome.predict<- as.numeric(classmat2classvec(outcome.xyf)) ?outcome.label<-intToChar(as.integer

Re: [R] problem with intToChar

2010-06-01 Thread Erik Iverson
Changbin Du wrote: Hi, Dear R- community, I am use the intToChar function to convert the integers to letters. But the output is mess. Can you guys give some suggestions? Thanks! I suggest you tell us what you were expecting to happen, that is, what do you actually want? It looks like it

Re: [R] problem with intToChar

2010-06-01 Thread Henrique Dallazuanna
use "[" not "(" On Tue, Jun 1, 2010 at 5:50 PM, Changbin Du wrote: > It does not work. > > > > outcome.label<-LETTERS(outcome.predict) > Error: could not find function "LETTERS" > > > > > On Tue, Jun 1, 2010 at 1:48 PM, Henrique Dallazuanna wrote: > >> Try this: >> >> LETTERS[outcome.predict] >>

Re: [R] problem with intToChar

2010-06-01 Thread Erik Iverson
Changbin Du wrote: It does not work. outcome.label<-LETTERS(outcome.predict) Error: could not find function "LETTERS" That is not when Henrique typed. LETTERS is a vector, and must be indexed as such, i.e., with "[]". __ R-help@r-project.org

Re: [R] problem with intToChar

2010-06-01 Thread Sarah Goslee
That isn't really enough information to answer your question, since you don't tell us where intToChar comes from or what you are trying to do, but here are a couple of possibilities: > ?intToChar No documentation for 'intToChar' in specified packages and libraries: you could try '??intToChar' > te

Re: [R] problem with intToChar

2010-06-01 Thread Changbin Du
It does not work. > outcome.label<-LETTERS(outcome.predict) Error: could not find function "LETTERS" On Tue, Jun 1, 2010 at 1:48 PM, Henrique Dallazuanna wrote: > Try this: > > LETTERS[outcome.predict] > > On Tue, Jun 1, 2010 at 5:43 PM, Changbin Du wrote: > >> Hi, Dear R- community, >> >> I

Re: [R] problem with intToChar

2010-06-01 Thread Henrique Dallazuanna
Try this: LETTERS[outcome.predict] On Tue, Jun 1, 2010 at 5:43 PM, Changbin Du wrote: > Hi, Dear R- community, > > I am use the intToChar function to convert the integers to letters. But the > output is mess. Can you guys give some suggestions? Thanks! > > > outcome.predict > [1] 4 4 4 4