if (FALSE) {
## Limit to 10 results
ncdc_datacats(limit=10)
## by datasetid
ncdc_datacats(datasetid="ANNUAL")
ncdc_datacats(datasetid=c("ANNUAL", "PRECIP_HLY"))
## Single data category
ncdc_datacats(datacategoryid="ANNAGR")
## Fetch data categories for a given set of locations
ncdc_datacats(locationid='CITY:US390029')
ncdc_datacats(locationid=c('CITY:US390029', 'FIPS:37'))
## Data categories for a given date
ncdc_datacats(startdate = '2013-10-01')
# Get data categories with data for a series of the same parameter arg, in this case
# stationid's
ncdc_datacats(stationid='COOP:310090')
ncdc_datacats(stationid=c('COOP:310090','COOP:310184','COOP:310212'))
## Curl debugging
ncdc_datacats(limit=10, verbose = TRUE)
}
Run the code above in your browser using DataLab