getDetailedWeather

0th

Percentile

Gets weather data for a single date (All records)

Given a valid station and a single date this function will return a dataframe of time-stamped weather data. It does not summarize the data.

Usage
getDetailedWeather(station_id, date, station_type = "airportCode",
  opt_temperature_columns = TRUE, opt_all_columns = FALSE,
  opt_custom_columns = FALSE, custom_columns = NULL,
  opt_compress_output = FALSE, opt_verbose = FALSE, opt_warnings = TRUE)
Arguments
station_id

is a valid 3-letter airport code or a valid Weather Station ID

date

is a valid string representing a date in the past (YYYY-MM-DD)

station_type

can be airportCode which is the default, or it can be id which is a weather-station ID

opt_temperature_columns

Boolen flag to indicate only Temperature data is to be returned (default TRUE)

opt_all_columns

Boolen flag to indicate whether all available data is to be returned (default FALSE)

opt_custom_columns

Boolen flag to indicate if only a user-specified set of columns are to be returned. (default FALSE) If TRUE, then the desired columns must be specified via custom_columns

custom_columns

Vector of integers specified by the user to indicate which columns to fetch. The Date column is always returned as the first column. The column numbers specfied in custom_columns are appended as columns of the data frame being returned (default NULL). The exact column numbers can be found by visiting the weatherUnderground URL, and counting from 1. Note that if opt_custom_columns is TRUE, then custom_columns must be specified.

opt_compress_output

Boolean flag to indicate if a compressed output is preferred. If this option is set to be TRUE, only every other record is returned

opt_verbose

Boolean flag to indicate if verbose output is desired

opt_warnings

Boolean flag to turn off warnings. Default value is TRUE, to keep the warnings on.

Value

A data frame with each row containing:

  • Date and Time stamp for the date specified

  • Temperature and/or other weather columns

See Also

getWeatherForDate, getSummarizedWeather

Aliases
  • getDetailedWeather
Examples

getDetailedWeather("NRT", "2014-04-29") #just the Temperature Columns

# Returns all columns available
getDetailedWeather("NRT", "2014-04-29", opt_all_columns=T) 

wCDG <- getDetailedWeather("CDG", "2013-12-12",opt_custom_columns=T, 
                           custom_columns=c(10,11,12))

Documentation reproduced from package weatherData, version 0.5.0, License: GPL

Community examples

Looks like there are no examples yet.