## Not run:
# # Get metadata on all stations
# ncdc_stations()
# ncdc_stations(limit=5)
#
# # Get metadata on a single station
# ncdc_stations(stationid='COOP:010008')
#
# # For many stations use lapply or similar
# lapply(c("COOP:010008", "COOP:010063", "COOP:010116"), function(z) {
# ncdc_stations(
# startdate = "2013-01-01",
# enddate = "2014-11-01",
# stationid = z)
# }$data)
#
# # Displays all stations within GHCN-Daily (100 Stations per page limit)
# ncdc_stations(datasetid='GHCND')
# ncdc_stations(datasetid=c('GHCND', 'ANNUAL'))
#
# # Station
# ncdc_stations(datasetid='NORMAL_DLY', stationid='GHCND:USW00014895')
#
# # datatypeid
# ncdc_stations(datatypeid="ANN-HTDD-NORMAL")
# ncdc_stations(datatypeid=c("ANN-HTDD-NORMAL", "ACSC"))
#
# # locationid
# ncdc_stations(locationid="CITY:AG000001")
# ncdc_stations(locationid="FIPS:30091")
# ncdc_stations(locationid=c("FIPS:30103", "FIPS:30091"))
#
# # datacategoryid
# ncdc_stations(datacategoryid="ANNPRCP")
# ncdc_stations(datacategoryid="AUAGR")
# ncdc_stations(datacategoryid=c("ANNPRCP", "AUAGR"))
#
# # Displays all stations within GHCN-Daily (Displaying page 10 of the results)
# ncdc_stations(datasetid='GHCND')
#
# # Specify datasetid and locationid
# ncdc_stations(datasetid='GHCND', locationid='FIPS:12017')
#
# # Specify datasetid, locationid, and station
# ncdc_stations(datasetid='GHCND', locationid='FIPS:12017', stationid='GHCND:USC00084289')
#
# # Specify datasetid, locationidtype, locationid, and station
# ncdc_stations(datasetid='GHCND', locationid='FIPS:12017', stationid='GHCND:USC00084289')
#
# # Displays list of stations within the specified county
# ncdc_stations(datasetid='GHCND', locationid='FIPS:12017')
#
# # Displays list of Hourly Precipitation locationids between 01/01/1990 and 12/31/1990
# ncdc_stations(datasetid='PRECIP_HLY', startdate='19900101', enddate='19901231')
#
# # Search for stations by spatial extent
# ## Search using a bounding box, w/ lat/long of the SW corner, then of NE corner
# ncdc_stations(extent=c(47.5204,-122.2047,47.6139,-122.1065))
# ## End(Not run)
Run the code above in your browser using DataLab