check_climate_args {ColOpenData} | R Documentation |
Check arguments in climate functions
Description
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.
Usage
check_climate_args(start_date, end_date, tag)
Arguments
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. |
Value
list with the arguments in the needed formats. If the input is invalid an error will be thrown.
[Package ColOpenData version 1.0.0 Index]