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]]
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
-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
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
Thank you for your quick response
sessionInfo()
R version 2.9.2 (2009-08-24)
x86_64-pc-linux-gnu
locale:
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
guillaume chaumet wrote:
Thank you for your quick response
sessionInfo()
R version 2.9.2 (2009-08-24)
x86_64-pc-linux-gnu
locale:
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:
8 matches
Mail list logo