title: R imbalance package Error in Ops.data.frame(dataset[, classAttr], minorityClass) ‘==’ only defined for equally-sized data frames
body: <p>So whenever I try to use some imbalance function on my dataset I get this error:</p>
  
  <pre><code> Error in Ops.data.frame(dataset[, classAttr], minorityClass) : 
    ‘==’ only defined for equally-sized data frames
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>dset &lt;- read_csv("C:/Users/Downloads/streaming.csv") %&gt;% select(-X1)
  
  head(dset, 10)
  
  imbalanceRatio(dset, classAttr = "cont_subs")
  </code></pre>
  
  <p>The task is a binary classification of whether the user continues his subscription to the service or not, with the "cont_subs" column containing only "Yes" or "No"</p>
  
  <p>There was a similar question where the fix was adding classAtr to the function but adding classAtr to the function for me causes this error. So far I wasnt able to find someone getting the same error using the same package.</p>
  
  <p>If I remove the classAtr from the imbalanceRatio func I get</p>
  
  <pre><code>   Error: Can't subset columns that don't exist.
  x The column `Class` doesn't exist.
  Run `rlang::last_error()` to see where the error occurred.
  </code></pre>
  
  <p>I'm new to R so excuse me if there's something obvious I'm missing.</p>