tab2ind: Transform a Table into an Indicator Matrix

Description Usage Arguments Value

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.



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

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

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

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