dat2ind {svs}R 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.


[Package svs version 3.1.1 Index]