Re: [R] Removing objects except user-defined functions

2015-02-19 Thread Henrik Bengtsson
On Thu, Feb 19, 2015 at 1:25 AM, philippe massicotte wrote: > 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 co

Re: [R] Removing objects except user-defined functions

2015-02-19 Thread Stéphane Adamowicz
There is a function keep() in package gdata for this purpose Le 19 févr. 2015 à 10:25, philippe massicotte 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 >

[R] Removing objects except user-defined functions

2015-02-19 Thread philippe massicotte
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