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

Reply via email to