I have an s4 class object from ROCR package. It has several slots containing data that are related among each other (i.e. "x.values", "y.values", and "alpha.values").
I would like to merge them in a matrix by accessing the slots to make some calculations (Youden indices, etc.)
I've tried things like this (according to my limited knowledge of R)
test<-cbind(perf@x.values,perf@y.values,perf@alpha.values)
and other formulas such as changing the class of the object directly...
but anything worked.