Description Usage Arguments Value Examples
Query CIMIS data using the Web API.
1 2 3 4 5 6 7 8 | cimis_data(
targets,
start.date,
end.date,
items,
measure.unit = c("E", "M"),
prioritize.SCS = TRUE
)
|
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 |
A tibble
object.
1 2 3 4 | if(is_key_set()) {
cimis_data(targets = 170, start.date = Sys.Date() - 4,
end.date = Sys.Date() - 1)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.