title: Error in split == TRUE : comparison (1) is possible only for atomic and list types
body: <p>This is the line of code that is generating the said error. The variable 'y' contains values '0' or '1'. There are about a dozen different variables in the dataframe. I'm using R version 3.4.1.</p>
  
  <pre><code>set.seed(201)
  library(caTools)
  spl = sample.split(bank$y, 0.7)
  training &lt;- subset(bank, split == TRUE)
  </code></pre>