Last chance! 50% off unlimited learning
Sale ends in
Function to convert a character vector to a membership matrix (binary matrix). The columns of the matrix are ordered with the order function.
cat_to_belongings(categories)catToBelongings(categories)
A binary matrix
A vector with the categories of each observation