my data set has missing values marked as 'XXX'
I have tried na.omit(mydata)
df <- data.frame(X=factor(c(0.2, "XXX", 0.4, 0.1)), Y=factor(c(0.8, 1, 0.9, "XXX")))
here X and Y are factors. I found that the missing data is encoded as "XXX" by checking the levels of the factor.
I want to remove row "2" and row "4". can someone help, I have been trying for a while now.