tab2ind: Transform a Table into an Indicator Matrix

Description Usage Arguments Value

View source: R/svs.r

Description

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

Usage

1
tab2ind(tab, sep = "_", add_names = TRUE)

Arguments

tab

A table (i.e. an object which can be converted to an array).

sep

Character specifying the separator string for joining the levels.

add_names

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

Value

An indicator matrix.


svs documentation built on May 29, 2017, 10:25 a.m.

Search within the svs package
Search all R packages, documentation and source code