I am doing regression with a data with Y as target variable and 16 feature variables. I had two date feature variables which where as factor. I converted them to date format as shown below:
X2 <- as.Date(X2, format="%m/%d/%Y"))
I had a lot of missing data in my training as well as validation data set. I was suggested to try out imputation. R had a lot of packages like AMELIA and Mice.I started trying with Mice package but I am getting the below error.
Error in FUN(newX[, i], ...) : 'x' must be numeric In addition: Warning message: In FUN(newX[, i], ...) : NAs introduced by coercion
Can anyone help me with this error.