Berton Gunter <[EMAIL PROTECTED]> wrote:
> plot(myscores[,1:2],pch=c('s','c','v')[groups])

Thanks, this works. How to understand the result of
the expression

   > c(1,2,'3)[groups]
    [1] 3 3 3 3 3 1 1 1 1 1 2 2 2 2 2

where

   > groups <- factor(c(rep("X",5), rep("Y",5), rep("Z",5)))

?

Sorry if it's too basic.

______________________________________________
[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

Reply via email to