cimis_data {cimir} | R Documentation |
Query CIMIS Data
Description
Query CIMIS data using the Web API.
Usage
cimis_data(
targets,
start.date,
end.date,
items,
measure.unit = c("E", "M"),
prioritize.SCS = TRUE
)
Arguments
targets |
geographies or weather stations of interest. This parameter may specify one or many stations, zip codes, coordinates, or street addresses; however, you are not allowed to mix values from different categories. This means the targets parameter must contain only stations, only zip codes, only coordinates, or only street addresses. You will receive an error if you attempt to mix different category types. The formats are accepted:
|
start.date |
Specifies the start date. The data format is
|
end.date |
Specifies the end date. The data format is
|
items |
specifies one or more comma-delimited data elements to
include in your response. See |
measure.unit |
The unit of measure may be either |
prioritize.SCS |
This parameter is relevant only when the
targets parameter contains zip code(s). If |
Value
A tibble
object.
Examples
if(is_key_set()) {
cimis_data(targets = 170, start.date = Sys.Date() - 4,
end.date = Sys.Date() - 1)
}