Re: [Rd] strptime failure R 2.2.1 (PR#8773)

From: Gabor Grothendieck <ggrothendieck_at_gmail.com>
Date: Sat 15 Apr 2006 - 17:39:09 GMT

It doesn't do that for me:

> example(strptime)

strptm> format(Sys.time(), "%a %b %d %X %Y %Z") [1] "Sat Apr 15 1:37:39 PM 2006 Eastern Daylight Time"

strptm> x <- c("1jan1960", "2jan1960", "31mar1960", "30jul1960")

strptm> z <- strptime(x, "%d%b%Y")

strptm> z
[1] "1960-01-01" "1960-01-02" "1960-03-31" "1960-07-30"

strptm> dates <- c("02/27/92", "02/27/92", "01/14/92", "02/28/92",

    "02/01/92")

strptm> times <- c("23:03:20", "22:29:56", "01:03:30", "18:21:03",

    "16:56:26")

strptm> x <- paste(dates, times)

strptm> z <- strptime(x, "%m/%d/%y %H:%M:%S")

strptm> z
[1] "1992-02-27 23:03:20" "1992-02-27 22:29:56" "1992-01-14 01:03:30" [4] "1992-02-28 18:21:03" "1992-02-01 16:56:26"
> R.version.string # windows XP
[1] "R version 2.2.1, 2005-12-20"
>

On 4/15/06, hutch@moneyware.com <hutch@moneyware.com> wrote:
> Full_Name: Bill Hutchison
> Version: 2.2.1
> OS: Windows XP
> Submission from: (NULL) (69.158.121.13)
>
>
> example(strptime) produces the following error:
>
> Error in strptime(x, "%d%b%Y") : 2 arguments passed to 'strptime' which requires
> 3
>
> This error occurs wherever strptime is used. It does not occur in 2.2.0
>
> ______________________________________________
> R-devel@r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>



R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Sun Apr 16 04:09:07 2006

This archive was generated by hypermail 2.1.8 : Sat 15 Apr 2006 - 22:17:27 GMT