title: Error in y - ymean : non-numeric argument to binary operator randomForest R
body: <p>I have a matrix which is about 37k x 1024 consisting of 1s and 0s as categorical variables to indicate the existence or absence of a feature vector. I ran this matrix through the randomForest package in R as follows : </p>
  
  <pre><code>rfr &lt;- randomForest(X_train,Y_train)
  </code></pre>
  
  <p>Where X_train is the matrix containing the categorical variables and Y__train is a vector consisting of labels for every row in the matrix. When i run this, i get the following error : </p>
  
  <pre><code>Error in y - ymean : non-numeric argument to binary operator
  In addition: Warning message:
  In mean.default(y) : argument is not numeric or logical: returning NA
  </code></pre>
  
  <p>I checked for any null values or missing data but didnt find any. </p>
  
  <p>I even made the whole thing into a data.frame and tried the following</p>
  
  <pre><code>rfr &lt;- randomForest(labels ~ ., data = featureDF)
  </code></pre>
  
  <p>Still had the same errors. </p>
  
  <p>I would appreciate any help with this, thanks!</p>