Rdocumentation
powered by
Learn R Programming
haven (version 0.2.0)
as_factor: Convert input to a factor.
Description
The base function
as.factor()
is not a generic, but this variant is. Methods are provided for factors, character vectors and labelled vectors.
Usage
as_factor(x, ...)
Arguments
x
Object to coerce to a factor.
...
Other arguments passed down to method.