R/type-coerce.R
type.factor.Rd
Coerce to a factor.
type.factor(x)
any vector
the input as a factor, error if this would involve data loss.