filter_coverage: Filter stations based on "coverage" requirements.

View source: R/daily_helpers.R

filter_coverageR Documentation

Filter stations based on "coverage" requirements.

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

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.


leighseverson/countyweather documentation built on April 9, 2022, 11:38 a.m.