powered by
Convert a factor to an integer representation
factor_to_integer(x)
An integer vector when x is a factor, otherwise the original x.
x
a vector. If x is a factor it will be converted to integers as described below; otherwise x is returned unchanged.