Skip to contents

The fraction of the ROOT parent calendar that a filter_calendar() sample retains, per built-in weight column (share, weight) — the time-side mirror of geoscales::geoscale_coverage(). A calendar that was never sampled reports 1 for both.

Usage

calendar_coverage(x, weight = NULL)

Arguments

x

A Calendar.

weight

"share", "weight", or NULL (default) for the named vector over both.

Value

A named numeric vector, or a single value with weight=.

Examples

calendar_coverage(filter_calendar(calendar("s4_h24"), "SEASON", "WIN"))
#>     share    weight 
#> 0.2465753 0.2465753