View source: R/download_climate.R
check_climate_args | R Documentation |
Climate functions have three common arguments: start_date
,
end_date
and tag
. This function checks that start_date
and end_date
can be converted to date using the format "YYYY-MM-DD",
that end_date
is greater than start_date
, and that the
tag
requested exists.
check_climate_args(start_date, end_date, tag)
start_date |
character with the first date to consult in the format
|
end_date |
character with the last date to consult in the format
|
tag |
character containing climate tag to consult. |
list with the arguments in the needed formats. If the input is invalid an error will be thrown.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.