Skip to contents

Complements print() with the quantitative view: coverage of a sampled calendar, share/width/weight statistics, and the catalog classification when present. Returns a "summary_Calendar" object (a list) with its own print method — the mirror of summary.Geoscale() in geoscales.

Usage

# S3 method for class 'Calendar'
summary(object, ...)

# S3 method for class '`timescales::Calendar`'
summary(object, ...)

# S3 method for class 'summary_Calendar'
print(x, ...)

Arguments

object

A Calendar.

...

Ignored.

x

A "summary_Calendar" object (the print method's argument).

Value

summary() returns a list of class "summary_Calendar": name, desc, timeframes (named member counts), tokens (the token of each timeframe built from one), n_timeslices, year_fraction, coverage (see calendar_coverage()), sampled, n_left_out (the number of timeslices of weight 0), parent_name, coverage_class ("complete", "truncated" or "averaged" for a catalog design, "sampled" for a subset taken with filter_calendar()), regularity (catalog designs and their subsets), share_range, width_range (timeframe units), weight_range, total_range (the part of the year a timeslice stands for), units (hours of one unit, by timeframe), year_start, utc_offset_minutes.

Examples

summary(calendar("m12_h24"))
#> <summary of Calendar 'm12_h24' >
#>   timeframes:     MONTH (12) / HOUR (288)
#>   tokens:         MONTH = m12, HOUR = h24
#>   timeslices:     288
#>   year_fraction:  1
#>   catalog:        averaged, regular
#>   share range:    0.0001142 .. 0.0001142
#>   width range:    1 .. 1 (units of 1 h)
#>   weight range:   28 .. 31
#>   total range:    0.003196 .. 0.003539
#>   year_start:     month=1, day=1
#>   utc offset:     0 min
summary(filter_calendar(calendar("s4_h24"), "SEASON", "WIN"))
#> <summary of Calendar 's4_h24[SEASON:WIN]' >
#>   timeframes:     SEASON (1) / HOUR (24)
#>   tokens:         SEASON = s4, HOUR = h24
#>   timeslices:     24
#>   year_fraction:  0.246575
#>   SAMPLED:        24.7% of the year of 's4_h24'
#>   class:          sampled
#>   share range:    0.0001142 .. 0.0001142
#>   width range:    1 .. 1 (units of 1 h)
#>   weight range:   90 .. 90
#>   total range:    0.01027 .. 0.01027
#>   year_start:     month=1, day=1
#>   utc offset:     0 min