filter_coverage: Filter stations based on "coverage" requirements.

Description Usage Arguments Value

View source: R/helper_climate.R


Filters available weather stations based on a specified required minimum coverage (i.e., percent non-missing daily observations). Weather stations with non-missing data for fewer days than specified by coverage will be excluded from the county average.


filter_coverage(coverage_df, coverage = 0)



A dataframe as returned by the meteo_coverage function in the rnoaa package


A numeric value in the range of 0 to 1 that specifies the desired percentage coverage for the weather variable (i.e., what percent of each weather variable must be non-missing to include data from a monitor when calculating daily values averaged across monitors).


A dataframe with stations that meet the specified coverage requirements for weather variables included in the coverage_df dataframe passed to the function.

wildviz documentation built on Aug. 23, 2021, 9:06 a.m.