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

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Sat 20 May 2006 - 16:39:04 EST

Your system (unstated) is corrupted. R runs its examples as part of it test suite, so this is not an error in R 2.2.1 (which is not current: see the posting guide which asked you to update *before* posting). One possibility is that you have strptime from a much earlier version of R in use somehow.

I suggest you remove all versions of R from your system and reinstall one latest version (2.3.1 beta).

On Fri, 19 May 2006, Rob Balshaw wrote:

>
> 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.
>
> Thanks,
>
> Rob
>
> ______________________________________________
> 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
>

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
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 17:02:15 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 27 May 2006 - 04:10:22 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.