title: Removing multiple files in the R program environment
body: <p>I am new to R program.</p>
  
  <p>I have a lot of files in the environment, x1,x2,x3.....x1279.</p>
  
  <p>How do I remove all the x files?</p>
  
  <p>I used to use GrADs, where I can simply remove the files using asterik *</p>
  
  <p>Is there a similar function in R? Do I have to use a while loop?</p>
  
  <p>eg.</p>
  
  <pre><code>n&lt;-1
  while(n&lt;1279){
  
  remove(x*,n)
  
  n&lt;-n+1
  
  }
  </code></pre>
  
  <p>Thanks!</p>