Is there a library that compute precision and recall of a fitted model in R.
Perhaps the caret package might help. https://topepo.github.io/caret/measuring-performance.html