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 19, 2017, 7:39 a.m.
Search within the svs package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.