[R] dataset.date, date of an object

Roger D. Peng rpeng at jhsph.edu
Wed May 5 14:22:48 CEST 2004


What exactly do you mean by "saved"?  Do you mean "modified"?  I 
don't think there is a way to tell when the last time an object 
was modified.  However, if you use the save() function and save 
an object to a file, then you can just look at the time stamps on 
the file.

-roger

Jason Watts wrote:

> Ok, I'd like the date an object was saved.  Here's what I used to do in S-PLUS:
>  
> 
>>dataset.date('my.dataframe')
> 
> [1] "Tue May  4 10:16:00 2004"
> 
> 
> Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
> What do you mean by `a permanently stored version of a dataset'?
> If you mean a save()d version, use file.info() on the saved file.
> 
> R does not store objects `permanently' as S-PLUS (sic) does, so your exact 
> phrasing is meaningless.
> 
> On Tue, 4 May 2004, Jason Watts wrote:
> 
> 
>>I'm looking for a function that returns the time at which a permanently
>>stored version of a dataset (object) was last modified, just like
>>dataset.date in S-Plus. Any suggestions?
> 
>




More information about the R-help mailing list