title: Error in if (any(co)) { : missing value where TRUE/FALSE needed
body: <p>I am trying to build a model for one class classification using SVM in R. I have verified using <code>is.na(x)</code> that none of my objects have <code>NA</code> values. I keep getting the error for which I cannot find a solution to, despite many posts on this topic.</p>
  
  <pre><code>d&lt;-read.xlsx("deals.xlsx", sheetIndex=1, rowIndex=NULL,
           startRow=2, endRow=200, colIndex=(1:5),
           as.data.frame=T, header=T, colClasses=NA,
           keepFormulas=FALSE, encoding="unknown")
  
  d&lt;-subset(d, res=="yes")
  x &lt;- subset(d, select = -res) #make x variables
  y &lt;- (d$res) #make y variable(dependent)
  
  model &lt;- svm(x,y,type='one-classification') 
  </code></pre>