Look up the registered policy for a koma_ts attribute
Source:R/time_series.R
get_koma_attr_policy.RdLook up the registered policy for a koma_ts attribute
Value
The list of handlers (merge, lag, window, na_omit)
registered via set_koma_attr_policy() for attr, or NULL if no
policy has been registered – in which case merges fall back to
default_koma_attr_merge() and lag/window/na_omit leave the
attribute value unchanged.
Examples
set_koma_attr_policy(
"anker",
merge = function(left, right, attr, op = NULL, template = NULL) NA
)
get_koma_attr_policy("anker")
#> $merge
#> function (left, right, attr, op = NULL, template = NULL)
#> NA
#> <environment: 0x562c9364d9a8>
#>
#> $lag
#> NULL
#>
#> $window
#> NULL
#>
#> $na_omit
#> NULL
#>
get_koma_attr_policy("some_other_attribute") # NULL: nothing registered
#> NULL