dat2ind | R Documentation |
A helper function for transforming a data frame into an indicator matrix.
dat2ind(dat, add_names = TRUE)
dat |
A data frame. |
add_names |
Logical specifying whether to add rownames to the resulting indicator matrix. |
An indicator matrix.
vec2ind
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.