weatherData (version 0.4.1)

showAvailableColumns: Shows all the available Weather Data Columns

Description

Displays all the columns that are available in the website, for the given station, and date range. Useful when only a subset of the columns are desired. Those can be specfied using the custom_columns vector. Note: There are different columns available for summarized vs. detailed data. Be sure to turn the opt_detailed flag to be TRUE if multiple records per day is desired.

Usage

showAvailableColumns(station_id, start_date, end_date = NULL,
  station_type = "airportCode", opt_detailed = FALSE, opt_verbose = FALSE)

Arguments

station_id

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

start_date

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

end_date

string representing a date in the past ("YYYY-MM-DD"), and later than or equal to start_date.

station_type

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

opt_detailed

Boolen flag to indicate if detailed records for the station are desired. (default FALSE). By default only one record per date is returned.

opt_verbose

Boolean flag to indicate if verbose output is desired (default FALSE)

Examples

Run this code

showAvailableColumns("NRT", "2014-04-04")

#if you want to see the columns for the *detailed* weather, turn on opt_detailed
showAvailableColumns("CDG", "2013-12-12", opt_detailed=T)

Run the code above in your browser using DataCamp Workspace