Re: [R] Applying Logical statement to DateTime string as factor

2009-08-18 Thread Gabor Grothendieck
As mentioned, read R News 4/1 and its references for info on dates and times. On Tue, Aug 18, 2009 at 5:06 PM, Pat Schmitz wrote: > Fantastic, that works fantastically.  Is there a optimal way to search R > News topics, so that I can catch references like this? For all my searching > of list serve

Re: [R] Applying Logical statement to DateTime string as factor

2009-08-18 Thread Pat Schmitz
Fantastic, that works fantastically. Is there a optimal way to search R News topics, so that I can catch references like this? For all my searching of list serves, and documentation, I found very little which could help me. I have however, had excellent help with R-help, Gabor, I appreciate your

Re: [R] Applying Logical statement to DateTime string as factor

2009-08-18 Thread Gabor Grothendieck
Try this: Lines <- '"1","30 Jun 2009 18:14:59" "2","02 Jul 2009 07:33:37" "3","06 Jul 2009 08:22:35" "4","06 Jul 2009 19:25:50" "5","08 Jul 2009 08:41:48" "6","10 Jul 2009 07:31:39" "7","10 Jul 2009 19:59:25" "8","13 Jul 2009 07:49:18" "9","13 Jul 2009 18:52:52" "10","15 Jul 2009 08:06:56" "11","

[R] Applying Logical statement to DateTime string as factor

2009-08-18 Thread Pat Schmitz
R-Help I have a data set which uses a DateTime string as follows : "2009-06-30 18:14:59" While I have been able to convert to DateTime properly time <- strptime(as.character(dat$Time),format='%d %b %Y %T') #Convert to dateTime string I would like to use the time of day "hour" as a *factor* level