Re: [R] Time of day

2013-06-25 Thread Enrico Schumann
On Tue, 25 Jun 2013, Rguy writes: > Is there a simple way to obtain the time of day in R? I want the time of > day for computational purposes, not for display. I want to be able to > create code like the following: > > if (time_of_day >= 22:00 & time_of_day <= 06:00) then X otherwise Y

Re: [R] Time of day

2013-06-25 Thread Prof Brian Ripley
On 25/06/2013 06:59, Rguy wrote: Is there a simple way to obtain the time of day in R? I want the time of day for computational purposes, not for display. I want to be able to create code like the following: if (time_of_day >= 22:00 & time_of_day <= 06:00) then X otherwise Y which will not par

[R] Time of day

2013-06-25 Thread Rguy
Is there a simple way to obtain the time of day in R? I want the time of day for computational purposes, not for display. I want to be able to create code like the following: if (time_of_day >= 22:00 & time_of_day <= 06:00) then X otherwise Y I realize I could parse a date/time object and extract