title: Convert part of dataframe to character list in R
body: <p>I am attempting to extract the header info from a large table and create a character list (so that I can use this list as a list of the variables contained in my table). I extract the header info in the following way (data is a date.frame):</p>
  
  <pre><code>vars = data[0,]
  </code></pre>
  
  <p>How do I now convert "vars" to a character list? When I do the following:</p>
  
  <pre><code>varsnew = as.character(vars)
  </code></pre>
  
  <p>I get the following result:</p>
  
  <pre><code>[1] "integer(0)" "integer(0)" "numeric(0)" "integer(0)" "integer(0)" "integer(0)"
  </code></pre>
  
  <p>What am I doing wrong? Is there another way to do this?</p>
  
  <p>Thank you.</p>