From al18853@uta.fi  Mon Oct  1 14:58:38 2001
From: al18853@uta.fi (al18853@uta.fi)
Date: Mon, 1 Oct 2001 15:58:38 +0200 (MET DST)
Subject: [Rd] problem with strptime example (PR#811)
Message-ID: <200110011358.PAA16380@pubhealth.ku.dk>

Hello,

strptime is still not working correctly in my computer 
(Windows 98 and R Version 1.3.1)  

From

x <- c("1jan1960", "2jan1960", "31mar1960", "30jul1960")
strptime(x, "%d%b%Y")

I obtain

[1] "NA" "NA" "NA" "NA"

while 
x <- c("01011960", "02011960", "3131960", "3071960")
strptime(x, "%d%m%Y")

gives 
[1] "1960-01-01" "1960-01-02" "1960-03-31" "1960-07-30"

So it seems that the problem is with %b. 

Arto Luoma


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


[Rd] problem with strptime example (PR#811)
al18853@uta.fi