filter_coverage: Filter stations based on "coverage" requirements.

Description Usage Arguments Value

Description

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.

Usage

1
filter_coverage(coverage_df, coverage = 0)

Arguments

coverage_df

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

coverage

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).

Value

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


countyweather documentation built on May 1, 2019, 6:35 p.m.