title: SVM:Need numeric dependent variable for regression
body: <p>I have the following data</p>
  
  <pre><code>scorer&lt;-function(points){
          points["scores"] &lt;- as.vector((points$X-5)^2+(points$Y-5)^2-9)
          points["class"]&lt;-(as.vector(  points$scores&lt;0 ))
          points
  }
  dt&lt;-scorer(data.frame(X=c(0,1,5,20,5,3,9,3,5,5),Y=c(0,9,9,0,-18,3,4,5,7,4)))
  </code></pre>
  
  <p>Then i am trying to predict the last column (class) using SVM</p>
  
  <pre><code>library(e1071)
  model &lt;- svm(class ~ . , dt)
  predictedClass &lt;- predict(model, dt)
  </code></pre>
  
  <p>but it complains with:</p>
  
  <pre><code>Error in svm.default(x, y, scale = scale, ..., na.action = na.action) : 
    Need numeric dependent variable for regression.
  </code></pre>