| Detailed description |
I am trying to make my life simpler and I have written a small function:
subRoc<-function(col,d){
b=subset(mydata, Day<d)
a=ROC(form=b[,1]~b[,col], plot="ROC")
}
Using this function I was trying to obtain ROC plots of numerous variables in selected time ranges (Day).
However, the ROC function doesn't see the "b" data.frame that was constructed inside the subRoc function. |
|