> 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.