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.
#> [1] "hour_day" "hour_week" "hour_fortnight" "hour_month" #> [5] "day_week" "day_fortnight" "day_month" "week_fortnight" #> [9] "week_month" "fortnight_month"