title: R 'newdata' had 7 rows but variables found have 182 rows
body: <p>I am trying the following:</p>
  
  <pre><code>model_lr &lt;- lm(metrics$Rev_Per_Player~metrics$Promo + metrics$DoW)
  
  DoW &lt;- wday(c(2,3,4,5,6,7,1), label = TRUE)
  Promo &lt;- c("","A","","B", "A","B", "")
  Players &lt;- c(3000,4000,4000,5000,6000,6000,7000)
  
  new_ds &lt;- data.frame(Promo,DoW,Players)
  
  predict(model_lr,newdata = new_ds[,1:2])
  </code></pre>
  
  <p>I end up getting this warning:</p>
  
  <pre><code>Warning message:
  'newdata' had 7 rows but variables found have 182 rows
  </code></pre>
  
  <p>All the explanations I found for this problem have to do with inapropriately  naming the new datasets' input features, which is something that I am accounting for already. </p>