On Wed, 6 Mar 2002, Joerg Maeder wrote:
> Hello,
>
> can anybopdy explain me this?
>
> > strptime('02 03',format= '%y %m' )
> [1] "2002-02-28"
> > strptime('02 03 04',format= '%y %m %d' )
> [1] "2002-03-04"
>
>
> shouldn't the first example return "2002-03-01"?
No, and this is covered in the help file (at least in 1.4.1).
--
Brian D. Ripley, ripley at 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 272860 (secr)
Oxford OX1 3TG, UK Fax: +44 1865 272595
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at
stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._