Creates an indicator matrix from a grouping vector.
1 |
grp.vec |
Numeric vector giving the group membership. |
K |
Scalar indicating the number of groups. Defaults to the number of
unique elements in |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.