powered by
Used in get_conf_mat but might be useful separately
get_conf_mat
labels_to_matrix(x)
Character or factor vector of class labels
Binary matrix of class membership.
# NOT RUN { my_labels <- rep(c("a","b","c","d"), 5) labels_to_matrix(my_labels) # }
Run the code above in your browser using DataLab