Re: [R] as.POSIXct month problem

2009-10-26 Thread guillaume chaumet
I am on Ubuntu Karmic. 2009/10/26 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: >> >> LC_CTYPE=fr_FR.UTF-8;LC_NUMERIC=C;LC_TIME=fr_FR.UTF-8;LC_COLLATE=fr_FR.UTF-8;

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: LC_CTYPE=fr_FR.UTF-8;LC_NUMERIC=C;LC_TIME=fr_FR.UTF-8;LC_COLLATE=fr_FR.UTF-8;LC_MONETARY=fr_FR.UTF-8;LC_MESSAGES=fr_FR.UTF-8;LC_PAPER=fr_FR.UTF-8;LC_NAME=C;LC_ADD

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

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: LC_CTYPE=fr_FR.UTF-8;LC_NUMERIC=C;LC_TIME=fr_FR.UTF-8;LC_COLLATE=fr_FR.UTF-8;LC_MONETARY=fr_FR.UTF-8;LC_MESSAGES=fr_FR.UTF-8;LC_PAPER=fr_FR.UTF-8;LC_NAME=C;LC_ADDRESS=C;LC_TELEPHONE=C;LC_MEA

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=

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

Re: [R] as.POSIXct month problem

2009-10-26 Thread Erik Iverson
iginal 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 3:32 PM > To: r-help@r-project.org > Subject: [R] as.POSIXct month problem > > Hi everybody > When I try example of st

[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 dele