[R] Dealing with Non-Standard Hours

2010-10-15 Thread Clint Bowman
A data set I obtained has the hours running from 01 through 24 
rather than the conventional 00 through 23.  My favorite, strptime, 
balks at hour 24.


I thought it would be easy to correct but it must be too late on 
Friday for my brain and caffeine isn't helping.


TIA for a hint,

Clint

--
Clint BowmanINTERNET:   cl...@ecy.wa.gov
Air Quality Modeler INTERNET:   cl...@math.utah.edu
Department of Ecology   VOICE:  (360) 407-6815
PO Box 47600FAX:(360) 407-7534
Olympia, WA 98504-7600

__
R-help@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.


Re: [R] Dealing with Non-Standard Hours

2010-10-15 Thread jim holtman
You could have posted an example of your data.  You can use 'sub' to
substitute one set of characters for another in your data.  There are
other ways of doing it if we had an example of your data.

On Fri, Oct 15, 2010 at 5:55 PM, Clint Bowman cl...@ecy.wa.gov wrote:
 A data set I obtained has the hours running from 01 through 24 rather than
 the conventional 00 through 23.  My favorite, strptime, balks at hour 24.

 I thought it would be easy to correct but it must be too late on Friday for
 my brain and caffeine isn't helping.

 TIA for a hint,

 Clint

 --
 Clint Bowman                    INTERNET:       cl...@ecy.wa.gov
 Air Quality Modeler             INTERNET:       cl...@math.utah.edu
 Department of Ecology           VOICE:          (360) 407-6815
 PO Box 47600                    FAX:            (360) 407-7534
 Olympia, WA 98504-7600

 __
 R-help@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.




-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem that you are trying to solve?

__
R-help@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.