recode {CMO} | R Documentation |
This function rearranges the factor levels of a factor.
recode(fak, recMat = NULL)
fak |
Input vector (a factor) |
recMat |
A matrix that determines how the factor levels will be recoded. If NULL an editor will ask for factor level changes at runtime. |
returns a factor with changed factor levels
Christian Montel