I'm new to R so please excuse my very basic question:
I have a data frame that has a lot of missing data. I've used na.omit to remove missing data as in:
data2 <- na.omit(data1)
Howevever, some of the variables are factors that still seem to have "" as one of the categorise, as in:
> str(data2$smoker)
Factor w/ 3 levels "","No","Yes": 2 2 2 2 2 2 2 3 3 2 ...
When I look at "data2" it does still have missing values. What I am doing wrong?
Help and advice much appreciated.
Greg