Rdocumentation
powered by
Learn R Programming
softclassval (version 1.0-20160527)
factor2matrix: Convert hard class labels to membership matrix
Description
Converts a factor with hard class memberships into a membership matrix
Usage
factor2matrix(f)
Arguments
f
factor with class labels
Value
matrix of size
length (f)
x
nlevels (f)
See Also
hardclasses
for the inverse