My question here is to aggregate the data collected at every 1-minute into 5-minute average.
DeviceTime Concentration 6/20/2013 11:13 6/20/201
Using the dplyr package and assuming, your data is stored in a data frame named df:
dplyr
df
require(dplyr) df %>% group_by(DeviceTime = cut(DeviceTime, breaks="5 min")) %>% summarize(Concentration = mean(Concentration))