indmat | R Documentation |
Creates an indicator matrix from a grouping vector.
indmat(grp.vec, K = length(unique(grp.vec)))
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.