factor2matrix: Convert hard class labels to membership matrix

factor2matrixR Documentation

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)

Author(s)

Claudia Beleites

See Also

hardclasses for the inverse


softclassval documentation built on Oct. 30, 2024, 9:12 a.m.