I\'m having a big trouble on dealing with levels names of a data frame.
I have a big data frame in which one of the colums is a factor with a LOT of levels.
You can edit the levels of the factor variable:
levels(df$col_foo) <- c(levels(df$col_foo),"bar2_X","bar3_X")
and then change the repeated levels to one of the new levels you added.