dat2ind: Transform a Data Frame into an Indicator Matrix

View source: R/svs.r

dat2indR Documentation

Transform a Data Frame into an Indicator Matrix

Description

A helper function for transforming a data frame into an indicator matrix.

Usage

dat2ind(dat, add_names = TRUE)

Arguments

dat

A data frame.

add_names

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

Value

An indicator matrix.

See Also

vec2ind.


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