Learn R Programming

countyweather (version 0.1.0)

daily_stations: NOAA NCDC station IDs per county.

Description

Returns a dataframe with NOAA NCDC station IDs for a single U.S. county. This function has options to filter stations based on maximum and minimum dates, as well as percent data coverage.

Usage

daily_stations(fips, date_min = NULL, date_max = NULL)

Arguments

fips
A string with the five-digit U.S. FIPS code of a county in numeric, character, or factor format.
date_min
A string with the desired starting date in character, ISO format ("yyyy-mm-dd"). The dataframe returned will include only stations that have data for dates including and after the specified date.
date_max
A string with the desired ending date in character, ISO format ("yyyy-mm-dd"). The dataframe returned will include only stations that have data for dates up to and including the specified date.

Value

A dataframe with NOAA NCDC station IDs for a single U.S. county.

Examples

Run this code
## Not run: 
# stations_36005 <- daily_stations("36005")
# stations_36005
# 
# miami_stations <- daily_stations("12086", date_min = "1999-01-01",
#                                  date_max = "2012-12-31")
# miami_stations
# ## End(Not run)

Run the code above in your browser using DataLab