title: NaN error in xgboost
body: <p>iam new in R ,am doing xgboost but it is showing me the following error</p>
  
  <blockquote>
    <p>preds &lt;- predict(clf, testM)</p>
  </blockquote>
  
  <p>Error in xgb.DMatrix(newdata) : 
    There are NAN in the matrix, however, you did not set missing=NAN</p>
  
  <p>i have also checked my xgb.DMatrix which is mention in the error where i have already shown :</p>
  
  <blockquote>
    <p>dtrain&lt;-xgb.DMatrix(data = trainMatrix,label = train_survived,missing = NaN)</p>
  </blockquote>
  
  <p>there is no error in xgb.DMatrix when i executed it</p>
  
  <p>Can anyone tell me where is the problem ?</p>