title: How to remove double quote in vector in R
body: <p>I extract some data but there are some problems.
  There are big data and here is some sample.
  The data &quot;energy&quot; is</p>
  <pre><code>&gt; energy
  
  &quot;XOM&quot; &quot;APA&quot; &quot;CVX&quot; &quot;DUK&quot;
  </code></pre>
  <p><code>XOM</code>, <code>APA</code>, <code>CVX</code>, <code>DUK</code> are all data.frame.</p>
  <p>but if I select <code>XOM</code> like <code>energy[1]</code> then, it shows</p>
  <pre><code>&quot;XOM&quot;
  </code></pre>
  <p>I want to make</p>
  <pre><code>&gt; energy 
  
  XOM APA CVX DUK
  </code></pre>
  <p>Because <em>I want to change column names of <code>XOM</code>, <code>APA</code>, <code>CVX</code>, <code>DUK</code> with <code>colnames()</code>.</em></p>
  <p>I make for loop function, like this...</p>
  <pre><code>for (i in length(energy) ) {
    colnames(energy[i]) = c('a','b','c','d', ..... )
  }
  </code></pre>
  <p>But it doesn't work and also I tried</p>
  <pre><code>for (i in length(energy) ) {
    colnames(get(energy[i])) = c('a','b','c','d', ..... )
  }
  
  </code></pre>
  <p>but I got errors.</p>
  <p>Please help me and really sorry about my poor English skills</p>
  <p>Thanks for everyone!</p>