Interaction of pair of granularities, categorised as harmony and clash
is_harmony(.data, gran1, gran2, hierarchy_tbl = NULL, facet_h = 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.
levels of facet variable for which faceting is allowed while plotting bivariate temporal granularities.
TRUE if two granularties are harmonies.
# NOT RUN { library(tsibbledata) vic_elec %>% is_harmony("hour_day", "day_week") # }
Run the code above in your browser using DataLab