[R] Some help with dates.

From: Paul Fisch <fischp_at_gmail.com>
Date: Fri, 20 Jun 2008 03:35:12 -0500


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.

Alternatively it could be stored as 0-6 for Sunday to Saturday. So Tuesday at 11 a.m. would be something like "2 11".

These dates don't need to be stored exactly like I have written. I just would like to know how R would store a day of the week combined with an hour in a variable.

Thanks,
Paul

        [[alternative HTML version deleted]]



R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Fri 20 Jun 2008 - 11:08:17 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 20 Jun 2008 - 11:30:51 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive