Re: [R] Some help with dates.

2008-06-20 Thread jim holtman
Check out 'POSIXlt'. This should provide a hint as to how you can do it: > ?as.POSIXlt > x <- as.POSIXlt('2008-03-04 11:00') > x [1] "2008-03-04 11:00:00 GMT" > unlist(x) sec min hour mday mon year wday yday isdst 0 011 4 2 108 263 0 > ?POSIXlt > myDat

[R] Some help with dates.

2008-06-20 Thread Paul Fisch
Hey, I'm new to R but familiar with other programming languages. Basically, I want to store an array of dates. For each of these dates I want to store only the day of the week and the hour. So for example: "Monday 12" would be Monday at 12 o'clock and "Tuesday 20" would be Tuesday at 8 p.m. Al