fernando espindola wrote:
Hi list....

I try to remove all object less one, this object is called index. I have
many object with different names and pattern option in ls function may not
remove this object why any word in index object repeats with other object.
Anybody can give me one advise for this question....

Thank for all

fernando
Is this what you are looking for:

rm( list = setdiff( ls( ), "index") ) )

Romain

--
Romain Francois
Independent R Consultant
+33(0) 6 28 91 30 30
http://romainfrancois.blog.free.fr

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to