monthly_coverage {GHCNr} | R 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 |
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, ]
[Package GHCNr version 1.4.5 Index]