Description Usage Arguments Value See Also
clean_hourly_data
Filter out extreme and implausible values from retrieved
weather data. Most limits are user parametrizable, although precip and wind speeds
are rejected if nonpositive, and visibility and humidity are restricted to be
between 0 and 100.
1 2 3 4 | clean_hourly_data(df, fast = FALSE, temp.min = -50, temp.max = 130,
wind_spd.max = 80, wind_gust.max = 120, pressure.min = 20,
pressure.max = 50, wind_chill.min = -50, wind_chill.max = 70,
heat_index.min = 50, heat_index.max = 150, precip.max = 2)
|
df |
dataframe with the weather data. |
fast |
use first of duplicate station-time observations rather than mean() |
temp.min |
numeric temperatures below this will be set to NA. |
temp.max |
numeric temperatures above this will be set to NA. |
wind_spd.max |
numeric wind speeds above this will be set to NA. |
wind_gust.max |
numeric wind speeds above this will be set to NA. |
pressure.min |
numeric pressure below this will be set to NA. |
pressure.max |
numeric pressure above this will be set to NA. |
wind_chill.min |
numeric wind chill below this will be set to NA. |
wind_chill.max |
numeric wind chill above this will be set to NA. |
heat_index.min |
numeric heat index below this will be set to NA. |
heat_index.max |
numeric heat index above this will be set to NA. |
precip.max |
numeric precip above this will be set to NA. |
dataframe with extreme values set to NA
update_weather
rebuild_weather
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.