fifteen_min <- data.frame(
datetime = as.POSIXct("2024-01-01 00:00:00", tz = "UTC") + 0:7 * 900,
load = c(10, 12, 14, 16, 14, 12, 10, 8)
)
change_timeseries_resolution(
fifteen_min,
resolution = 60,
method = "average"
)
Run the code above in your browser using DataLab