[R] about undefined columns selected

2012-01-30 Thread xiaocong zuo
Hi,all, when I run the below code,there is an error occured. could you please tell me how to treat it? pdf('covariate.pdf') par(mfrow=c(1,1)) pairs(data2[,c(ID,TYPE,AGE,GNDR,HT)], + panel=function(x,y) { points(x,y); lines(lowess(x,y))}) Error in `[.data.frame`(data2, , c(ID, TYPE, AGE, GNDR,

Re: [R] about undefined columns selected

2012-01-30 Thread Milan Bouchet-Valat
Le dimanche 29 janvier 2012 à 21:50 -0500, xiaocong zuo a écrit : Hi,all, when I run the below code,there is an error occured. could you please tell me how to treat it? pdf('covariate.pdf') par(mfrow=c(1,1)) pairs(data2[,c(ID,TYPE,AGE,GNDR,HT)], + panel=function(x,y) { points(x,y);