coverage: Calculate Coverage of Daily Summaries

View source: R/coverage.R

coverageR Documentation

Calculate Coverage of Daily Summaries

Description

coverage() calculates the temporal coverage of the time series. See also monthly_coverage(), annual_coverage(), and period_coverage().

Usage

coverage(x, graph = FALSE)

Arguments

x

Object of class ghcn_daily. See daily() for details.

graph

Logical, if to show a graph of annual coverage.

Details

Returns a table with:

  • mothly_coverage The proportion of the days with records in the month

  • annual_coverage The proportion of the days with records in the year

  • annual_coverage The proportion of the years with records in the reference period

Value

A table with coverage.

Examples

cleaned <- remove_flagged(CA003076680)
cover <- coverage(cleaned)
cover[cover$month == 1, ]

GHCNr documentation built on April 3, 2025, 11:16 p.m.