## Load a dataset with 10 positives and 10 negatives
data(P10N10)
## Generate an sscurve object that contains ROC and Precision-Recall curves
sscurves <- evalmod(scores = P10N10$scores, labels = P10N10$labels)
## Convert sscurves to a data.table
if (requireNamespace("data.table", quietly = TRUE)) {
head(data.table::as.data.table(sscurves))
}
Run the code above in your browser using DataLab