annual_coverage: Calculate Annual Coverage

View source: R/coverage.R

annual_coverageR Documentation

Calculate Annual Coverage

Description

annual_coverage() calculates how many days have been recorded for each year in the time period.

Usage

annual_coverage(x)

Arguments

x

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

Details

To calculate the coverage, a full daily time range is full joined to the timeseries. Missing days are set to NA. Coverage is then calculated as the number of values that are not NAs over the number of NAs.

Value

A table with annual coverage.

Examples

cleaned <- remove_flagged(CA003076680)
cover <- annual_coverage(cleaned)
cover

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