There is a function keep() in package gdata for this purpose

Le 19 févr. 2015 à 10:25, philippe massicotte <[email protected]> a écrit 
:

> Dear R users.
> 
> I would like to remove all object from my workspace except the function I 
> have defined. However, is I use rm(list = ls()) everything is cleared. I was 
> thinking to typeof to get information about objects, but I could not get it 
> working right.
> 
> Thank in advance,
> Phil
>                                         
>       [[alternative HTML version deleted]]
> 
> ______________________________________________
> [email protected] mailing list -- To UNSUBSCRIBE and more, see
> 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.

______________________________________________
[email protected] mailing list -- To UNSUBSCRIBE and more, see
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