title: converting multiple columns from character to numeric format in r
body: <p>What is the most efficient way to convert multiple columns in a data frame from character to numeric format?</p>
  
  <p>I have a dataframe called DF with all character variables.</p>
  
  <p>I would like to do something like</p>
  
  <pre><code>for (i in names(DF){
      DF$i &lt;- as.numeric(DF$i)
  }
  </code></pre>
  
  <p>Thank you</p>