NO “NA” in Workclass & Native.Country variables are coming after importing the train & test file in R .
instead its taking it as space or tab
AVdatafest : Experiments With Data - Importing issues in the data in R
Sourabh1987
#1
Lalit_Varma
#2
try the following -
train[train==’’] <- NA
test[test==’’]<- NA
and then check it by -
colSums(is.na(train))
colSums(is.na(test))
Let me know if you see the difference.
Thanks,
Lalit