title: How to define 'local' variables in R?
body: <p>For example, inside a for loop, I want to define some variables to do some operation, but I want them to be automatically removed once the iteration is over. </p>
  
  <p>However, if I assing a value to a variable using <code>&lt;-</code>, even after the execution of the loop ends, the variable still persists and I have to remove it, manually, which is quite annoying.</p>