So, I used df <- data.frame( x=I(coef(cancerv1(,2:407))),
y=cancerv1[,408])before feeding to PCR.
However, I get the below error.
Error in coef(cancerv1(, 2:407)) : could not find function "cancerv1".
It's because you have the syntax error 'cancerv1(...)', which looks to
R, and me, a function call. The error message seems straightforward.
______________________________________________
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.