s-news
[Top] [All Lists]

RE: [S] dates of creating an object

To: <s-news@wubios.wustl.edu>
Subject: RE: [S] dates of creating an object
From: "Terry Elrod" <Terry.Elrod@ualberta.ca>
Date: Fri, 26 May 2000 08:58:54 -0600
Importance: Normal
In-reply-to: <JPKHIGEGDKMJCAAA@mailcity.com>
Reply-to: <Terry.Elrod@ualberta.ca>
Sender: owner-s-news@wubios.wustl.edu
Al-

Here's some related ideas that might be useful....

(1) If you are using S-Plus 2000 for Windows, then you have an Object
Browser. You can have the right pane show dates, and then click on the date
heading to sort on that. I use this all the time. Most recent objects will
be on the bottom. The left pane will show the objects sorted by name even if
they are sorted in the right pane by date, which is handy.

(2) I also bundle stuff into lists as a sort of archive when I finish a
phase of my analysis. I reserve the name r, for instance, for results. Stuff
can be added to the end like this....
r[["This is the second regression"]] _ reg.rslts
r[["This is the anova test result for the second regression"]] _ ....

I also reserve f for function calls, with similarly descriptive names. Note
that the names are not legal S-Plus names (at least they cannot be used
without quotation marks), but I don't care. I type names(r) and then extract
the list element I want later by index number, so the names merely need to
be descriptive.

(3) I use scripts a lot. These can collect all the useful commands (minus
mistakes and wrong paths) together, so it is easy to redo or slightly modify
an analysis done before.

(4) With the first three strategies, I don't save a lot of objects, because
they are easy to recreate. I reserve names beginning with a period as "junk"
variables which can be deleted after any session without harm. This
disciplines me to save vital objects under different (and more descriptive,
if longer) names at the end of a session. It also lets me use short names
that are easy to type during a work session, and as long as they start with
a period, I needn't worry that they will replace a vital object of the same
name that I created in some earlier session.

Cheers,

Terry Elrod

> -----Original Message-----
> From: owner-s-news@wubios.wustl.edu
> [mailto:owner-s-news@wubios.wustl.edu]On Behalf Of Albert Horwath
> Sent: 25 May 2000 07:40
> To: s-plus
> Subject: [S] dates of creating an object
>
>
>
> Dear All:
> My project contains several hundreds of objects, and it often
> happens that I can't recall the name of the function I've been
> recently working on. Is that possible to somehow list the objects
> categorized by the date of creation. I mean, to retrieve
> the name of an object using something like:
>
> objects([,objects$date=GIVEN DATE])
>
> or so?
>
> Al Horwath
>
> Ass.Professor
> Social Psychology
> Columbus, OH
>
>
>
>
>
>
> Get your FREE Email at http://mailcity.lycos.com
> Get your PERSONALIZED START PAGE at http://my.lycos.com
> -----------------------------------------------------------------------
> This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
> send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
> message:  unsubscribe s-news

-----------------------------------------------------------------------
This message was distributed by s-news@wubios.wustl.edu.  To unsubscribe
send e-mail to s-news-request@wubios.wustl.edu with the BODY of the
message:  unsubscribe s-news

<Prev in Thread] Current Thread [Next in Thread>