I have a dataset which looks like this(A-J are column names)
A   B   C   D   E   F   G   H   I   J
1   2   2   3   2   1   1   1   1
2   1   1   1   1   1   1   1   1   1
2   1   2   2   2   2   2   2   1   1
2   1   2   1   1   1   1   1   1   1
2   1       3   3   3   2   2   2   2
2   1   3   2   2   3   1   1   1   1
    1   3   2   1   2   2   2   1   2
2   1   2   2   2   2   2   2   1   1
1   2   2   2   2   1   1   1   1
2   1   2   1   1   1   2   1   1   1
2   1   1   1   1   1   2   2   1   1
2   1   2   1   1   1   1   1   1   2
2   1   1   1           1   1   1   1
2   1   3   3   3   3   1   1   1   2
    1   2   2   1   2   1   1   1   1
    1   2   2   2   2   2   2   1   1
2   2   4   1   1   1   2   2   1   1
1   1   3   3   3   3                
2   1   3   3   1   2   2   2   2   3
I am getting the below error-
Error in (function (classes, fdef, mtable)  : unable to find an inherited method for function ‘complete’ for signature ‘"mids", "numeric"’
My data has lot of NULL values and I am trying to impute the data using below code-
imp_data<-mice(data = data_NA, m = 5, method = "rf", maxit = 5, seed = 500)
I get the error when I run the code-
complete(imp_data,1)
Please suggest where I am doing wrong
 
    