powered by
This function re-codes a factor with pre-specified factor levels, using an integer encoding as input.
int2fact(x, lvls)
the same factor, now coded with the original levels
an integer vector (that represents factor vector) to be transformed
the original factor levels used