After detecting the number of missing values within each attribute, we have to impute the missing values since they might have a significant effect on the conclusions that can be drawn from the data.
This recipe will require
train.data loaded in the R session and have the previous recipe completed by converting
Survived to a factor type.
Perform the following steps to impute the missing values:
useNA = "always"argument to show the number of NA values contained within
> table(train.data$Embarked, useNA = "always") C Q S <NA> 168 77 644 2