Data goes like this:
Df <- data.table( id = c(1,2,3,4, 5,6,7,8,9,10) , age = c(23, 34,26,33,43,13,16,19,21,10) , Death = c(1, 0,NA,1,NA,1,1,0,0,0) , Recover = c(0,1,0,0,NA,0,0,1,NA,1), date = (2013-03-04,NA,2013-04-03,2013-04-03,NA,2013-04-07,2013-04-14,NA,NA,2013-04-28
)
)
i want to remove NA s from above table.
class (date) =date
class(recover)=numeric
class(death)=numeric
i'm new to R, please help me to clean the table using imputation..