Cross tabulation of granularities useful for validating if number of observations are sufficient to compute probability distributions
gran_obs(.data, gran1, gran2, hierarchy_tbl = NULL)
A tsibble object.
One of the temporal granularities to check for harmonies.
The second temporal granularity in the pair.
A hierarchy table specifying the hierarchy of units and their relationships for non-temporal case.
A tibble with number of observations for each granularity.
# NOT RUN { library(tsibbledata) vic_elec %>% gran_obs("hour_day", "day_week") # }
Run the code above in your browser using DataLab