Converts a defined()
vector with value labels into a
factor using haven::as_factor()
. This allows categorical defined
vectors to behave like standard factors in models and plotting.
Arguments
- x
A vector created with
defined()
.- ...
Reserved for future extensions; not used.