Re: [R] is.Date ?!!!

From: Duncan Murdoch <murdoch_at_stats.uwo.ca>
Date: Thu 21 Jul 2005 - 00:57:52 EST

On 7/20/2005 10:41 AM, Omar Lakkis wrote: > Is there a way to test if a variable is a date?

Yes, but there are several different things people might call dates. Which do you mean?

For example,

> today <- Sys.Date()
> today

[1] "2005-07-20"
> inherits(today, "Date")

[1] TRUE Duncan Murdoch



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jul 21 01:12:23 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:33:51 EST