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,
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
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
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