title: R, DMwR-package, SMOTE-function won't work
body: <p>I need to apply the smote-algorithm to a data set, but can't get it to work. </p>
  
  <p>Example:</p>
  
  <pre><code>x &lt;- c(12,13,14,16,20,25,30,50,75,71)
  y &lt;- c(0,0,1,1,1,1,1,1,1,1)
  
  frame &lt;- data.frame(x,y)
  
  library(DMwR)
  
  smotedobs &lt;- SMOTE(y~ ., frame, perc.over=300)
  </code></pre>
  
  <p>This gives the following error:</p>
  
  <pre><code>Error in scale.default(T, T[i, ], ranges) : subscript out of bounds
  In addition: Warning messages:
  1: In FUN(newX[, i], ...) :
    no non-missing arguments to max; returning -Inf
  2: In FUN(newX[, i], ...) : no non-missing arguments to min; returning Inf
  </code></pre>
  
  <p>Would appriciate any kind of help or hints.</p>