R/wunderWrapper.R

#' wunderWrapper: A package to generate historic data hourly requests to the package 
#'   rwunderground and save the results in .rda files.  
#'   
#' wunderWrapper offers a few functions to retrieve, save and format historical weather
#'   data from wunderground.com.  You will need a key from wunderground.com, which 
#'   has limits on request volume and rate.  See rwunderground package documentation 
#'   if you want to do more.
#'
#'
#' @section fetch, store and combine data from wunderground.com:
#'   \link{store_weather_data}, \link{update_weather_data}, \link{merge_location_data}
#'
#' @section rebuild hourly/daily dataframe pair from archive data:
#'   \link{rebuild_weather}, \link{update_weather} ,\link{report_weather}
#'
#' @importFrom rwunderground history_range get_api_key
#' @importFrom lubridate second minute hour tz date with_tz days ymd is.POSIXct
#' @importFrom dplyr bind_rows anti_join left_join right_join arrange group_by 
#' @importFrom dplyr distinct first funs lag n do one_of group_by_ arrange_
#' @importFrom magrittr %>%
#' @importFrom pracma Mode
#' @importFrom stats approx
#' @name wunderWrapper
NULL

###  make the R checker happy
tedious <- utils::globalVariables(c(".","weatherstation","weatherupdate","localtime","localdate","utctime",
                                    "temp","dew_pt","hum","wind_spd","wind_gust","vis","precip",
                                    "pressure","wind_chill","heat_index","gustratio","snow","hail",
                                    "minutes","cond","fog","rain","thunder","tornado","time","localtz",
                                    "precip_total","precip_rate","min_temp","max_temp","rank1","rank2"))
CraigMohn/wunderWrapper documentation built on May 15, 2019, 5:34 p.m.