[R] Remove

Rashid Nassar rnassar at duke.edu
Wed Mar 7 14:27:52 CET 2001


On Wed, 7 Mar 2001, Stephanie Langevin wrote:

> Date: Wed, 07 Mar 2001 12:18:49 +0000
> From: Stephanie Langevin <langevin at valigen.net>
> To: r-help at stat.math.ethz.ch
> Subject: [R] Remove
> 
> Hello,
> 
> I would like to remove some files which have the extension  .test for
> example (data1.test, data2.test ....).
> Is there another solution to remove them instead of doing it one by one
> ?
> 
> Thanks for your help,
> Stéphanie Langevin

I would do:

ls(pat = "[.]test$")     # to first list the objects to be removed to make 
                         # sure they don't include something you don't want
                         # to remove, then

rm(list = ls(pat = "[.]test$"))


Rashid Nassar
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list