[R] as.POSIXct month problem

2009-10-26 Thread guillaume chaumet
Hi everybody When I try example of strptime x - c(1jan1960, 2jan1960, 31mar1960, 30jul1960) z - strptime(x, %d%b%Y) The result is; z [1] NA NA NA NA I have got the same result with complete form of month but not with numeric form. Any idea? [[alternative HTML version deleted]]

Re: [R] as.POSIXct month problem

2009-10-26 Thread Erik Iverson
Sent: Monday, October 26, 2009 3:32 PM To: r-help@r-project.org Subject: [R] as.POSIXct month problem Hi everybody When I try example of strptime x - c(1jan1960, 2jan1960, 31mar1960, 30jul1960) z - strptime(x, %d%b%Y) The result is; z [1] NA NA NA NA I have got the same result

Re: [R] as.POSIXct month problem

2009-10-26 Thread William Dunlap
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org] On Behalf Of guillaume chaumet Sent: Monday, October 26, 2009 1:32 PM To: r-help@r-project.org Subject: [R] as.POSIXct month problem Hi everybody When I try example of strptime x - c

Re: [R] as.POSIXct month problem

2009-10-26 Thread Jorge Ivan Velez
Hi Guillaume, What is your sessionInfo() ? It works me: x - c(1jan1960, 2jan1960, 31mar1960, 30jul1960) z - strptime(x, %d%b%Y) z [1] 1960-01-01 1960-01-02 1960-03-31 1960-07-30 sessionInfo() R version 2.9.2 RC (2009-08-23 r49375) i386-pc-mingw32 locale: LC_COLLATE=English_United

Re: [R] as.POSIXct month problem

2009-10-26 Thread guillaume chaumet
Thank you for your quick response sessionInfo() R version 2.9.2 (2009-08-24) x86_64-pc-linux-gnu locale:

Re: [R] as.POSIXct month problem

2009-10-26 Thread guillaume chaumet
That's work with Sys.setlocale(LC_TIME,en_US.UTF-8) Thank you 2009/10/26 Jorge Ivan Velez jorgeivanve...@gmail.com Hi Guillaume, What is your sessionInfo() ? It works me: x - c(1jan1960, 2jan1960, 31mar1960, 30jul1960) z - strptime(x, %d%b%Y) z [1] 1960-01-01 1960-01-02 1960-03-31

Re: [R] as.POSIXct month problem

2009-10-26 Thread Peter Dalgaard
guillaume chaumet wrote: Thank you for your quick response sessionInfo() R version 2.9.2 (2009-08-24) x86_64-pc-linux-gnu locale:

Re: [R] as.POSIXct month problem

2009-10-26 Thread guillaume chaumet
I am on Ubuntu Karmic. 2009/10/26 Peter Dalgaard p.dalga...@biostat.ku.dk guillaume chaumet wrote: Thank you for your quick response sessionInfo() R version 2.9.2 (2009-08-24) x86_64-pc-linux-gnu locale: