Re: [R] as.Date < today ?

From: Spencer Graves <spencer.graves_at_pdf.com>
Date: Sat 02 Jul 2005 - 11:28:47 EST

          The following is a minor modification of examples in the help for "as.Date":

 > x <- c("1jan1960", "2jan1960", "31mar1960", "30jul2006")
 > z <- as.Date(x, "%d%b%Y")
 > z< Sys.Date()

[1] TRUE TRUE TRUE FALSE
	  How's this?
	  spencer graves

Omar Lakkis wrote:

> I have a Date variable that I constructed with as.Date()
> How ca I compare it to today (<,>,==) ?
>
> ______________________________________________
> 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

-- 
Spencer Graves, PhD
Senior Development Engineer
PDF Solutions, Inc.
333 West San Carlos Street Suite 700
San Jose, CA 95110, USA

spencer.graves@pdf.com
www.pdf.com <http://www.pdf.com>
Tel:  408-938-4420
Fax: 408-280-7915

______________________________________________
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 Sat Jul 02 11:39:44 2005

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