cat_to_belongings: Convert categories to membership matrix

View source: R/side_functions.R

cat_to_belongingsR Documentation

Convert categories to membership matrix

Description

Function to convert a character vector to a membership matrix (binary matrix). The columns of the matrix are ordered with the order function.

Usage

cat_to_belongings(categories)

catToBelongings(categories)

Arguments

categories

A vector with the categories of each observation

Value

A binary matrix


geocmeans documentation built on Sept. 12, 2023, 9:06 a.m.