title: How to create a data frame with numeric and character columns?
body: <p>I'm trying to build a data frame consisting of three character variables and one numeric variable. When I run the following code, I get a four-column matrix, but the score variable is no longer numeric, and the scores are treated as factors.</p>
  
  <pre><code>school&lt;-c("NYU", "BYU", "USC", "FIT", "UNH","UCLA","USF","Columbia")
  state&lt;-c("NY","UT","CA","NY","NY","CA", "CA","NY")
  measure&lt;-c("MSAT","MSAT","GPA","MSAT","MSAT","GPA","GPA","GPA")
  score&lt;-c(500, 490, 2.9, 759, 550, 1.2, 3.1, 3.2)
  data&lt;-cbind(school,state, measure,score)
  </code></pre>
  
  <p>If I run</p>
  
  <pre><code>data1&lt;-data.frame(cbind(school,state, measure,score))
  </code></pre>
  
  <p>I get a data frame where <code>score</code> is still a factor. How can I build this data frame so that <code>score</code> is numeric?</p>