[R] Date parsing question

2004-05-27 Thread Ajay Shah
How do I parse a date mmdd? I tried asking chron(s, ymd) but that didn't work. Would the date parsing routines of the Date class of 1.9 grok this? -- Ajay Shah Consultant [EMAIL PROTECTED] Department of Economic Affairs

Re: [R] Date parsing question

2004-05-27 Thread Peter Dalgaard
Ajay Shah [EMAIL PROTECTED] writes: How do I parse a date mmdd? I tried asking chron(s, ymd) but that didn't work. Would the date parsing routines of the Date class of 1.9 grok this? Yes, trivially: as.Date(20040527,format=%Y%m%d) [1] 2004-05-27 -- O__ Peter Dalgaard

Re: [R] Date parsing question

2004-05-27 Thread tobias . verbeke
[EMAIL PROTECTED] wrote on 27/05/2004 11:29:11: How do I parse a date mmdd? I tried asking chron(s, ymd) but that didn't work. Would the date parsing routines of the Date class of 1.9 grok this? a - 20030527 as.Date(a, %Y%m%d) [1] 2003-05-27 HTH, Tobias -- Ajay Shah