[R] Probs with paste

2008-06-09 Thread EVANS David-William
Hello all, After some months doing ok with R, I am embarrassed that I have to make this my first posting to the help list. I am trying to run the following (actually in a loop but shortened for the post): risk.factors <- c("file$A", "file$B", "file$C", "file$D", "file$E") table(pas

[R] TR : Probs with paste

2008-06-10 Thread EVANS David-William
output of table(file$A). For the record, someone read my thinking and sent the following solution which works well: table(eval(parse(text=risk.factors[1]))) Thanks again. David. -Message d'origine- De : Sarah Goslee [mailto:[EMAIL PROTECTED] Envoyé : lundi 9 juin 2008 2

[R] Input correlation matrix directly to princomp, prcomp

2008-11-03 Thread EVANS David-William
Hello fellow Rers, I have a no-doubt simple question which is turning into a headache so would be grateful for any help. I want to do a principal components analysis directly on a correlation matrix object rather than inputting the raw data (and specifying cor = TRUE or the like). The re

[R] "Text" function in 3D graph

2008-11-05 Thread EVANS David-William
Fellow R users, I often use « text » to annotate plots in 2 dimensions. Having grown up to 3 dimensions recently, I am looking for a similar function. Could anyone provide code for how to annotate points in a 3-d plot? Your help is greatly appreciated. For Sébastien Velazquez. -

[R] RE : "Text" function in 3D graph

2008-11-06 Thread EVANS David-William
th to this email address and to [EMAIL PROTECTED] -Message d'origine- De : Duncan Murdoch [mailto:[EMAIL PROTECTED] Envoyé : mercredi 5 novembre 2008 19:02 À : EVANS David-William Cc : r-help@r-project.org Objet : Re: [R] "Text" function in 3D graph On 11/5/2008 10:59 AM,