View source: R/side_functions.R
cat_to_belongings | R Documentation |
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)
categories |
A vector with the categories of each observation |
A binary matrix
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.