Description Usage Arguments Value Examples
The first step for getting weather data for a location is to find which weather stations are closest to that location. This function will return a dataframe of Mesonet weather stations that are within some number of decimal degrees of some dataframe containing latitudes and longitudes that you provide.
1 | get_station_info(df, decdegrees = 0.1, loc_key = "Location_code")
|
df |
A dataframe or tbl_df object that contains columns 'Latitude' and 'Longitude', and some grouping column to specify distinct locations. |
decdegrees |
The distance, in decimal degrees, |
loc_key |
The name of the grouping column that specifies distinct locations in the dataframe. |
a dataframe containing details for all Mesonet stations that are within some number of decimal degrees of the latitudes and longitudes in your input dataset.
1 2 3 4 | ## Not run: get_station_info(df = bean_data, loc_key = "Location_code")
## Not run: get_station_info(df = bean_data, decdegrees = 0.5,
loc_key = "Location_code")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.