Learn R Programming

GHCNr (version 1.4.6)

coverage: 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)

Value

A table with coverage.

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

Examples

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

Run the code above in your browser using DataLab