tsbox works with long data.frames. In order to correctly detect the multiple series, use ts_long. However, tempdisagg only works on single series, so we use ts_pick to extract series ‘A’.
water_volume_d <- ts_pick(ts_xts(ts_long(water_volume)), "A")
#> [time]: 'Date'
#> [time]: 'Date'
#> Loading required namespace: xts
#> Registered S3 method overwritten by 'xts':
#> method from
#> as.zoo.xts zoo
### disaggregate from daily to hourly data
# method 'fast' is recommended for high frequency disaggregations, as they can
# become very slow.
test1 <- td(water_volume_d ~ 1, to = "hour", method = "fast")
water_volume_h <- predict(test1)
tsbox works with long data.frames. In order to correctly detect the multiple series, use
ts_long
. However, tempdisagg only works on single series, so we usets_pick
to extract series ‘A’.And the result:
Created on 2019-09-15 by the reprex package (v0.3.0)