title: Error in split == FALSE : comparison (1) is possible only for atomic and list types
body: <p>while i was working  got stuck here , i would appreciate if some one could assist me in resolving the issue, below is the code and error message for your reference. </p>
  
  <pre><code>library(caTools)
  split_data &lt;- sample.split(filter_data_1$spend, SplitRatio = 0.75)
  split_data    
  train_data &lt;- subset(filter_data_1, split == TRUE)
  test_data &lt;- subset(filter_data_1, split == FALSE)
  </code></pre>
  
  <p><strong><em>Error message :</em></strong></p>
  
  <pre><code>test_data &lt;- subset(filter_data_1, split = = FALSE)
  </code></pre>
  
  <p><strong><em>Error:</em></strong> </p>
  
  <blockquote>
    <p>unexpected '=' in "test_data &lt;- subset(filter_data_1, split =="
    test_data &lt;- subset(filter_data_1, split == FALSE)
     Error in split == FALSE :<br>
      comparison (1) is possible only for atomic and list types</p>
  </blockquote>