tab2ind {svs} | R Documentation |
A helper function for transforming a table into an indicator matrix.
tab2ind(tab, add_names = TRUE)
tab |
A table or (sparse) matrix. |
add_names |
Logical specifying whether to add rownames to the resulting indicator matrix. |
An indicator matrix.