title: Name of i in loop - R
body: <p>I'm trying to extract the name of the <code>i</code> column used in a loop:</p>
  
  <pre><code>for (i in df){
    print(name(i))
  }
  </code></pre>
  
  <p>Python code solution example:</p>
  
  <pre><code>for i in df:
    print(i)
  </code></pre>
  
  <p>PS: R gives me the column values If I use the same code than Python (but python gives just the name).</p>
  
  <p>EDIT: It has to be <strong>in</strong> a loop. As I will do more elaborate things with this.</p>