Usage
ncdc_locs_cats(datasetid = NULL, locationcategoryid = NULL, startdate = NULL, enddate = NULL, sortfield = NULL, sortorder = NULL, limit = 25, offset = NULL, token = NULL, ...)
Arguments
datasetid
A valid dataset id or a vecto or list of dataset id's. Data returned will be from the
dataset specified, see datasets() (required)
locationcategoryid
A valid location id or a vector or list of location category ids
startdate
A valid ISO formated date (yyyy-mm-dd). Data returned will have
data after the specified date. Paramater can be use independently of enddate (optional)
enddate
Accepts valid ISO formated date (yyyy-mm-dd). Data returned will have data
before the specified date. Paramater can be use independently of startdate (optional)
sortfield
The field to sort results by. Supports id, name, mindate, maxdate, and
datacoverage fields (optional)
sortorder
Which order to sort by, asc or desc. Defaults to asc (optional)
limit
Defaults to 25, limits the number of results in the response. Maximum is
1000 (optional)
offset
Defaults to 0, used to offset the resultlist (optional)
token
This must be a valid token token supplied to you by NCDC's Climate
Data Online access token generator. (required) Get an API key (=token) at
http://www.ncdc.noaa.gov/cdo-web/token. You can pass your token in as
an argument or store it in your .Rprofile file with an entry like
- options("noaakey" = "your-noaa-token")
...
Further named parameters, such as query
, path
, etc, passed on to
modify_url
. Unnamed parameters will be combined with
config
.