How would you rename the levels of our factor?

levels(my_factor) <- c("F", "M")names(my_factor) <- c("F", "M")rename(levels) <- c("F", "M")

Sweet! We rename the levels by assigning a vector to the levels(my_factor) expression.

Oh noes! We rename the levels by assigning a vector to the levels(my_factor) expression.