tab2ind: Transform a Table into an Indicator Matrix

View source: R/svs.r

tab2indR Documentation

Transform a Table into an Indicator Matrix

Description

A helper function for transforming a table into an indicator matrix.

Usage

tab2ind(tab, add_names = TRUE)

Arguments

tab

A table or (sparse) matrix.

add_names

Logical specifying whether to add rownames to the resulting indicator matrix.

Value

An indicator matrix.


svs documentation built on June 24, 2024, 5:07 p.m.