title: R: removing objects in a for loop
body: <p>I am new to R language. I wanted to remove all objects in a loop like this:</p>
  
  <pre><code>for (name in ls()) rm(name)
  </code></pre>
  
  <p>Unfortunately, I does not work. Could someone explain why? 
  Thanks</p>