monthly_coverage: Calculate Monthly Coverage

View source: R/coverage.R

monthly_coverageR Documentation

Calculate Monthly Coverage

Description

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

Usage

monthly_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 mothly coverage.

Examples

cleaned <- remove_flagged(CA003076680)
cover <- monthly_coverage(cleaned)
cover[cover$year == 2020, ]

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