s-news
[Top] [All Lists]

Re: [S] dates of creating an object

To: s-news@wubios.wustl.edu, al_horwath@mailcity.com
Subject: Re: [S] dates of creating an object
From: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Date: Fri, 26 May 2000 16:23:52 +0100 (BST)
Reply-to: Prof Brian Ripley <ripley@stats.ox.ac.uk>
Sender: owner-s-news@wubios.wustl.edu
>To: "s-plus" <s-news@wubios.wustl.edu>
>Date: Thu, 25 May 2000 06:40:27 -0700

>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])
>

You haven't told us your S-PLUS version.  At least on 2000 and 5.1
you can use objects.summary. That has a dataset.date field, but
I think you will need to do some work on it to extract the date
(rather than date and time to the nearest second). Sorting on that
might be interesting:

zz <- objects.summary()
zz[sort.list(zz$dataset.date), "dataset.date", drop=F]

                            dataset.date 
                lmix2a 1999.04.08  17:05
                     p 1999.04.08  17:06
                   sps 1999.08.04  16:09
                    tt 1999.10.04  13:59
               acc.bin 1999.10.26  17:18
                     z 1999.11.10  11:59
                  junk 2000.02.18  17:07
             tablename 2000.03.08   9:47
....

objects.summary exists on 3.4, but seems pretty confused about dates
past 1999, and a colleague reported yesterday that 4.5 has the same
problem (and got told it was long past the time he should have
installed his upgrade).

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

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