Skip to contents

Filter down to sites with num_years of data

Usage

filter_sites(
  x,
  parameter_cd = "72019",
  num_years = NA,
  start_year = NA,
  end_year = NA
)

Arguments

x

aquifer data

parameter_cd

character, 5-digit parameter code, default is "72019".

num_years

integer number of years required. This can be NA, in which case the filter will use the full range of the data.

start_year

integer the first year to filter from. If NA, the filter will use the minimum from the data.

end_year

integer the last year to filter from. If NA, the filter will use the last year.

Value

data frame filter of x

Examples

aquifer_data <- aquifer_data
num_years <- 30

aq_data <- filter_sites(aquifer_data,
                        parameter_cd = "72019",
                        num_years = num_years)