Reduce, replace or transform levels of a data.frame or factor variable (useful for preprocessing datasets).