tab2ind {svs} | R Documentation |
Transform a Table into an Indicator Matrix
Description
A helper function for transforming a table into an indicator matrix.
Usage
tab2ind(tab, sep = "_", add_names = TRUE)
Arguments
tab |
A table or (sparse) matrix. |
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.
[Package svs version 3.0.0 Index]