Re: [R] adding date/time stamp

2008-12-31 Thread Gabor Grothendieck
Try pasting this into R (the first portion is from your post): Lines <- "LST in mphDeg DegF DegF2%volts Deg mph2 w/m2 050901 0.007.8 216.9 45.1 -999 24.4 -999 -999 10.60.2 0509010005 0.008.6 206.6 45.1 -999 25.2 -999 -999 11.7

Re: [R] adding date/time stamp

2008-12-31 Thread Sherri Heck
Hi Gabor- Your suggestion did work. However, maybe I should explain more what I am trying to do. Once I have dataset (z) condensed to an hourly format I will compare it with another dataset (lets call it y). Here's a tidbit of dataset y: doy yr mon day hr hgt1 hgt2 hgt3 co21 co22 co23 sig

Re: [R] adding date/time stamp

2008-12-30 Thread Gabor Grothendieck
Try this: > aggregate(z$mph, trunc(time(z), "hour"), mean) (09/01/05 00:00:00) (09/01/05 01:00:00) (09/01/05 02:00:00) 9.2750010.08333 9.2 On Tue, Dec 30, 2008 at 6:30 PM, Sherri Heck wrote: > Dear All- > > I have a dataset that is comprised of the followi

[R] adding date/time stamp

2008-12-30 Thread Sherri Heck
Dear All- I have a dataset that is comprised of the following (LST = yymmddhhMM): LST in mphDeg DegF DegF2%volts Degmph2 w/m2 050901 0.007.8 216.9 45.1 -999 24.4 -999 -999 10.60.2 0509010005 0.008.6 206.6 45.1 -999 25.2