I have a dataset that recorded at 15-min interval (non-continuous) .
How can I aggregate this dataset to 30-min, 45-min, 1-hr and 2-hr?.
value <- c(1.869, 1.855, 1.855, 1.855, 1.855, 1.855, 1.855, 1.848, 1.848, 1.848, 1.848, 1.848, 1.848, 1.849)
date <- c("2013-08-28 08:00:00 UTC", "2013-08-28 08:15:00 UTC",
"2013-08-28 08:45:00 UTC", "2013-08-28 09:15:00 UTC",
"2013-09-28 09:45:00 UTC", "2013-08-28 10:15:00 UTC",
"2013-08-28 10:30:00 UTC", "2013-08-28 10:45:00 UTC",
"2013-08-28 11:00:00 UTC", "2013-08-28 11:45:00 UTC",
"2013-08-28 12:00:00 UTC", "2013-08-29 00:15:00 UTC",
"2013-08-29 01:00:00 UTC", "2013-08-29 01:15:00 UTC")
data <- data.frame(date=date,value=value)
Thank you..!!!