search_gran | R Documentation |
Get set of possible granularities that can be considered exhaustively depending on the frequency of the data.
search_gran( .data, lowest_unit = NULL, highest_unit = NULL, hierarchy_tbl = NULL, filter_in = NULL, filter_out = NULL, ... )
.data |
A tsibble object. |
lowest_unit |
Typically set as the finest unit required for analysis. For "regular" tsibble, lgran is the interval of the tsibble. It needs to be specified for "irregular" time intervals.For non-temporal data, default is the first unit specified in the hierarchy table. |
highest_unit |
Typically set as the most coarse unit required for analysis.For temporal data, default is "year" and for non-temporal data, default is set as the last unit specified in the hierarchy table. |
hierarchy_tbl |
A hierarchy table specifying the hierarchy of units and their relationships. |
filter_in |
Choices of temporal units to be kept. |
filter_out |
Choices of temporal units to be discarded. |
... |
Other arguments to be passed. |
Set of possible granularities.
library(tsibbledata) vic_elec %>% search_gran(lowest_unit = "hour", highest_unit = "month")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.