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, add_names = TRUE)
Arguments
tab |
A table or (sparse) matrix. |
add_names |
Logical specifying whether to add rownames to the resulting indicator matrix. |
Value
An indicator matrix.
[Package svs version 3.1.1 Index]