rg
Subject: Re: [R] taking daily means from hourly data
This is one way:
df <- data.frame(Time=as.POSIXct("2009-01-01", format="%Y-%m-%d") + seq(0,
60*60*24*365-1, 60*60),
lev.morgan=3+runif(24*365),
lev.lock2=3+runif(24*365),
This is one way:
df<- data.frame(Time=as.POSIXct("2009-01-01", format="%Y-%m-%d") + seq(0,
60*60*24*365-1, 60*60),
lev.morgan=3+runif(24*365),
lev.lock2=3+runif(24*365),
flow=1000+rnorm(24*365, 200),
direction=runif(24*365, 0
On Thu, Jul 15, 2010 at 12:52 AM, Meissner, Tony (DFW)
wrote:
> I have a data frame (morgan) of hourly river flow, river levels and wind
> direction and speed thus:
> Time hour lev.morgan lev.lock2 lev.lock1 flow direction
> velocity
> 1 2009-07-06 15:00:00 15 3.266
I have a data frame (morgan) of hourly river flow, river levels and wind
direction and speed thus:
Time hour lev.morgan lev.lock2 lev.lock1 flow direction
velocity
1 2009-07-06 15:00:00 15 3.266 3.274 3.240 1710.6 180.282
4.352
2 2009-07-06 16:00:00
4 matches
Mail list logo