Displaying 1 result from an estimated 1 matches for "dlev".
Did you mean:
dev
2010 Jul 15
2
taking daily means from hourly data
...visage doing this with the following example code:
morgan$fTime <- factor(substr(as.character(morgan$Time),1,10))
dflow <- tapply(morgan[,"flow"], morgan$fTime, mean)
day <- tapply(morgan[,"Time"], morgan$fTime, mean)
:
:
daily <- as.data.frame(cbind(day,dflow, dlev.morg,dlev.lock2, ...))
daily$day <- with(daily, as.POSIXct("1970-01-01", "%Y-%m-%d", tz="Australia/Adelaide") + day)
rownames(daily) <- NULL
Is there a more efficient way of doing this? I am running R-2.11.0 under Windows XP
Tschüß
Tony Meissner
Principal Scie...