title: Error in .local(x, ...): x and y don't match
body: <p>I'm new to R, and trying to fit a model using <code>kernlab</code> with some data that I just loaded in.  However, when I try and load it in I get the error message in the subject line.  I assume this means the data type of <code>X</code> and <code>y</code> are not compatible.</p>
  <p>Here's some sample code:</p>
  <pre><code>data = read.delim(&quot;my-sample-file.txt&quot;)
  model = ksvm(data[, 1:10], data[, 11])
  </code></pre>
  <p>When I call <code>data[, 11]</code> I just the raw values in the column returned to me, and I notice the <code>typeof</code> function returns the value <code>integer</code>, which I found strange.  I am not using any additional packages, just trying to get something basic to work.</p>
  <p>Thank you.</p>