AVdatafest : Experiments With Data - Importing issues in the data in R

r

#1

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


#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