[R] remove objects(1-20, 25-30) OR remove objects(...) except(...)??

Ulrich Leopold uleopold at science.uva.nl
Thu Jul 25 13:58:40 CEST 2002

Dear list,

I would like to do a remove like either

remove objects(1-20, 25-30) OR remove objects(...) except(...)

I only found the approach rm(pat=) which is not suitable as there would be 
too many patterns.

Can I also remove objects by their given number in ls() or do a remove but 
exclude certain objetcs?

Regards, Ulrich


Ulrich Leopold MSc.

Department of Physical Geography
Institute for Biodiversity and Ecosystem Dynamics
Faculty of Science
University of Amsterdam
Nieuwe Achtergracht 166
NL-1018WV Amsterdam

Phone: +31-(0)20-525-7456 (7451 Secretary)
Fax:   +31-(0)20-525-7431
Email: uleopold at science.uva.nl

Check us also out at:
Netherlands Centre for Geo-ecological Research

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