gran_obs | R Documentation |
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)
.data |
A tsibble object. |
gran1 |
One of the temporal granularities to check for harmonies. |
gran2 |
The second temporal granularity in the pair. |
hierarchy_tbl |
A hierarchy table specifying the hierarchy of units and their relationships for non-temporal case. |
A tibble with number of observations for each granularity.
library(tsibbledata) vic_elec %>% gran_obs("hour_day", "day_week")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.