Displaying 1 result from an estimated 1 matches for "lter6".
Did you mean:
lter
2011 Oct 27
2
Simple time series question with zoo
...with some code I got from this list from
https://stat.ethz.ch/pipermail/r-help/2009-March/191302.html
The code how I have been using it is as follows:
library(zoo)
library(chron)
DB<-read.table("/Users/me/Desktop/R/data.csv", sep=",", header=TRUE, as.is
=TRUE)
z<-zoo(LTER6$temp, chron(LTER6$Date, LTER6$Time))
z.day=aggregate(z, trunc, mean) #This last line gives me daily averages for
my data
Simple and elegant- and it works. Thanks to the author the hard part is
over. But I plan to tweak it so I have some questions about why this works
1- The data I have has the d...