title: Warning Messages when running linear regression in R
body: <p>I'm attempting to run a linear regression in R, but get the following errors:</p>
  
  <pre><code>Warning messages:
  1: In model.response(mf, "numeric") :
   using type = "numeric" with a factor response will be ignored
  2: In Ops.factor(y, z$residuals) : ‘-’ not meaningful for factors
  </code></pre>
  
  <p>The code is: </p>
  
  <pre><code>reg_ex1 &lt;- lm(V45~TotalScore,data = Combineddatainprogresscsv)
  </code></pre>
  
  <p>Both values, V45, and TotalScore are numerical. A Google search yielded a similar question where it was suggested that the csv file might have commas. But I'm not an expert so don't know how to check this? </p>
  
  <p>Thank you!</p>
  
  <p>There are 1300 lines, so here is just the final part of the output. Let me know if you need more.</p>
  
  <pre><code>    "50", "60", "70", "80", "90", "Compared to others who may have taken this test, how well do you think you scored? - 1"
  ), class = "factor"), V46 = structure(c(23L, 6L, 4L, 22L, 
  4L, 8L), .Label = c("", "0", "1", "10", "11", "12", "13", 
  "14", "15", "16", "17", "18", "19", "2", "20", "3", "4", 
  "5", "6", "7", "8", "9", "Score"), class = "factor"), TotalScore = c(0L, 
  12L, 10L, 9L, 10L, 14L)), row.names = c(NA, 6L), class = "data.frame")
  </code></pre>