From ggrothendieck at gmail.com  Mon Sep 26 17:43:57 2005
From: ggrothendieck at gmail.com (Gabor Grothendieck)
Date: Mon, 26 Sep 2005 11:43:57 -0400
Subject: [Rd] is.Date function question
In-Reply-To: <433814FB.30904@vanderbilt.edu>
References: <433814FB.30904@vanderbilt.edu>
Message-ID: <971536df05092608437ede3eb0@mail.gmail.com>

Try this:

> is(Sys.Date(), "Date")
[1] TRUE
> is(33, "Date")
[1] FALSE

> inherits(Sys.Date(), "Date")
[1] TRUE
> inherits(33, "Date")
[1] FALSE

> R.version.string
[1] "R version 2.2.0, 2005-09-20"


On 9/26/05, Charles Dupont <charles.dupont at vanderbilt.edu> wrote:
> Why is there no is.Date function in R?  I am running 2.1.1 does it exist
> in newer version?  If there is a reasoning behind the lack of a is.Date
> function what is it?
>
> Thanks
>
> Charles
>
>
> --
> Charles Dupont         Computer System Analyst      School of Medicine
> Phone: (615) 936-6510  Department of Biostatistics   Vanderbilt University
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



[Rd] is.Date function question
Gabor Grothendieck