[R] Function as.Date leading to error implying that strptime requires 3 arguments

From: Rob Balshaw <Rob.Balshaw_at_syreon.com>
Date: Sat 20 May 2006 - 11:05:02 EST

I'm using R V 2.2.1. When I try an example from the as.Date help page, I get an error.

> x <- c("1jan1960", "2jan1960", "31mar1960", "30jul1960")
> z <- as.Date(x, "%d%b%Y")
Error in strptime(x, format) : 2 arguments passed to 'strptime' which requires 3

Any suggestions would be appreciated.



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 May 20 11:11:26 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sat 20 May 2006 - 18:10:10 EST.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.