I have the following line of code:
enem$TP_COR_RACA <- factor(enem$TP_COR_RACA, levels = 0:5,
labels = c("Nao", "Branca", "Preta", "Parda", "Amarela", "Indígena"))
I want to replace occurrences of the "Nao"
value with NA
, ie empty field.