[Rd] problem with strptime example (PR#811)

Peter Dalgaard BSA p.dalgaard@biostat.ku.dk
01 Oct 2001 16:17:30 +0200


al18853@uta.fi writes:

> 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. 

This works fine for me on a similar setup. Does Finnish localisation
do strange things with month names??

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._