data
, a dataframe of hourly average weather values, and
plot
, a plot showing the location of weather stations contributing to
the average weather in data
.
hourly_fips(fips, year, var = "all", coverage = NULL, average_data = TRUE, station_label = FALSE, verbose = TRUE)
year
can
be in the range from 1901 to the current year.var = c("wind_speed", "temperature")
pulls data on hourly
wind speed and temperature. The core weather variables
available include "wind_direction"
, "wind_speed"
,
"ceiling_height"
, "visibility_distance"
, "temperature"
,
"temperature_dewpoint"
, "air_pressure"
. Alternatively, you
can specify var = "all" to include additional flag and quality codes.hourly_data
) is a
dataframe of daily weather data averaged across multiple stations, as well
as columns ("var"_reporting
) for each weather variable showing the
number of stations contributing to the average for that variable for that
hour. The second element (station_metadata
) is a dataframe of station
metadata for stations included in the daily_data
dataframe, as
well as statistical information about the values contriuted to each
weather variable by each station. The third element (station_map
)
is a plot showing points for all weather stations for a particular county
satisfying the conditions present in hourly_fips
's arguments
(year, coverage, and/or weather variables). radius
is the
calculated radius within which stations were pulled from the county's
center. Elements lat_center
and lon_center
are the latitude
and longitude of the county's center.
## Not run:
#
# ex <- hourly_fips("12086", coverage = 0.90, year = c(1994, 1995),
# var = "temperature")
#
# data <- ex$hourly_data
# station_data <- ex$station_metadata
# station_map <- ex$station_map
# ## End(Not run)
Run the code above in your browser using DataLab