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", "HT")) :
undefined columns selected
> dev.off()
RStudioGD
2
Thank you very much!

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to