Skip to contents

Coerce to a factor.

Usage

type.factor(x)

Arguments

x

any vector

Value

the input as a factor, error if this would involve data loss.