tp: Extract number true / false positives / negatives
Description
Extract the number of true positives (tp), false positives (fp),
true negatives (tn), or false negatives (fn).
The inputs must be vectors of equal length. Mainly useful for plot_cutpointr.
Usage
tp(tp, ...)
tn(tn, ...)
fp(fp, ...)
fn(fn, ...)
Arguments
tp
(numeric) number of true positives.
...
for capturing additional arguments passed by method.