I have an S4 class object:
class(pred)
[1] "prediction"
attr(,"package")
[1] "ROCR"
and pred has following columns
slotNames(pred)
#[1] "predictions" "labels" "cutoffs" "fp" "tp" "tn" "fn"
#[8] "n.pos" "n.neg" "n.pos.pred" "n.neg.pred"
pred has around 10K rows. Now I want to get records which has predictions > 0.5
How I can subset this?