prob_to_binary {tidysdm} | R Documentation |
simple function to convert probability to binary classes
prob_to_binary(x, thresh, class_levels)
x |
a vector of probabilities |
thresh |
the threshold to convert to binary |
class_levels |
the binary levels |
a vector of binary values