title: Combining list and get
body: <p>How can I combine list and get? my goal is to run an operation like</p>
  
  <pre><code>compare &lt;- list(get(variables[1:length(variables)]))
  </code></pre>
  
  <p>I have a vector named <code>variables</code> where each coordinate is one of my variables in .GlobalEnv. This is my vector</p>
  
  <pre><code>variables &lt;- c("var1","var2",...,"varN")
  </code></pre>
  
  <p>I also have each variable in memory. So that if I run var1 (or any other) I get</p>
  
  <pre><code>&gt; var1
  [1] 0.5      
  [2] 0.7                           
  [3] 0.9                                      
  [4] 0.3                   
  [5] 0.1 
  </code></pre>
  
  <p>Then I can run, for example, <code>list(var1,var10,var100)</code> but <code>list(get(variables[1:length(variables)]))</code> does the same as <code>list(var1,var1)</code></p>