factor2matrix | R Documentation |
Converts a factor with hard class memberships into a membership matrix
factor2matrix(f)
f |
factor with class labels |
matrix of size length (f)
x nlevels (f)
Claudia Beleites
hardclasses
for the inverse
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.