R has data frames (data.frame) and can also read csv files. For instance.
dframe <- read.csv2("test.csv")
For dates, you may need to specify columns using the colClasses parameter. See ?read.csv2 . For instance:
dframe <- read.csv2("test.csv", colClasses=c("POSIXct",NA,NA))
Then you can round the date field using round or trunc , which allows you to split the data into the desired frequencies.
For instance,
dframe$trunc.times <- trunc(dframe$date.field,1,units='mins'); means <- daply(dframe, 'trunc.times', function(df) { return( mean(df$value) ) });
Where value is the name of the field you want to average.
source share