RE: [R] how to keep functions while remove all other commands

2004-02-02 Thread Simon Fear
As an alternative to Petr's approach of using separate directories, one can also write a function (which I find quite useful in its own right) to separate ls() output by mode, e.g. lsd - function(splitby=mode, pos=1, ...) { lsout - ls(pos=pos, ...) tapply(lsout, sapply(lsout,

Re: [R] how to keep functions while remove all other commands

2004-01-26 Thread Petr Pikal
Hi On 24 Jan 2004 at 21:47, Yong Wang wrote: Dear all: a quick question: I am used to apply rm(list=()) regularly to remove all old codes in preventing them creeping in current analysis.however, with that application, functions I wrote are also removed. please let me know how to keep the

RE: [R] how to keep functions while remove all other commands

2004-01-25 Thread Henrik Bengtsson
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Yong Wang Sent: den 25 januari 2004 04:47 To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: [R] how to keep functions while remove all other commands Dear all: a quick question: I am used to apply rm(list=()) regularly to remove all old

[R] how to keep functions while remove all other commands

2004-01-24 Thread Yong Wang
Dear all: a quick question: I am used to apply rm(list=()) regularly to remove all old codes in preventing them creeping in current analysis.however, with that application, functions I wrote are also removed. please let me know how to keep the thing you want while remove those you don't. thank