I am trying to create a model using glmnet, (currently using cv to find the lambda value) and I am getting an error NA/NaN/Inf in foreign function call (arg 5).
NA/NaN/Inf in foreign function call (arg 5)
It appears that glmnet cannot handle NA values!