Learn R Programming

haven (version 0.1.1)

as_factor: Convert input to a factor.

Description

The base function as.factor() is not a generic, but this variant is.

Usage

as_factor(x, ...)

Arguments

x
Object to coerce to a factor.
...
Other arguments passed down to method.