clean_hourly_data: Remove data measurements that are outside of credible ranges

Description Usage Arguments Value See Also

Description

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.

Usage

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)

Arguments

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.

Value

dataframe with extreme values set to NA

See Also

update_weather rebuild_weather


CraigMohn/wunderWrapper documentation built on May 15, 2019, 5:34 p.m.