Combine groups to make a list of all possible verification groups
Source:R/utility_functions.R
make_verif_groups.Rd
This function is intended to define all possible group combinations for use
in verification functions such as det_verify
. When
time_groups
are given, the function ensures that they appear in every
group.
Arguments
- time_groups
Groups that could be used as a time axis in a plot. Can be any combination of "lead_time", "valid_dttm" and "valid_hour".
- groups
Other group columns to use in a verification.
Examples
make_verif_groups("lead_time", c("fcst_cycle", "station_group"))
#> [[1]]
#> [1] "lead_time"
#>
#> [[2]]
#> [1] "lead_time" "fcst_cycle"
#>
#> [[3]]
#> [1] "lead_time" "station_group"
#>
#> [[4]]
#> [1] "lead_time" "fcst_cycle" "station_group"
#>
make_verif_groups(
c("lead_time", "valid_dttm", "valid_hour"),
c("fcst_cycle", "station_group")
)
#> [[1]]
#> [1] "lead_time"
#>
#> [[2]]
#> [1] "valid_dttm"
#>
#> [[3]]
#> [1] "valid_hour"
#>
#> [[4]]
#> [1] "lead_time" "fcst_cycle"
#>
#> [[5]]
#> [1] "lead_time" "station_group"
#>
#> [[6]]
#> [1] "lead_time" "fcst_cycle" "station_group"
#>
#> [[7]]
#> [1] "valid_dttm" "fcst_cycle"
#>
#> [[8]]
#> [1] "valid_dttm" "station_group"
#>
#> [[9]]
#> [1] "valid_dttm" "fcst_cycle" "station_group"
#>
#> [[10]]
#> [1] "valid_hour" "fcst_cycle"
#>
#> [[11]]
#> [1] "valid_hour" "station_group"
#>
#> [[12]]
#> [1] "valid_hour" "fcst_cycle" "station_group"
#>