I have a data frame with numeric and ordered factor columns. I have lot of NA values, so no level is assigned to them. I changed NA to \"No Answer\", but levels of the facto
I have a very simple answer that may not directly address your specific scenario, but is a simple way to do this generally
levels(df$column) <- c(levels(df$column), newFactorLevel)