Description Usage Arguments Value
View source: R/cpcQueryDateRange.R
This function provides access to CPC data for a date range. This function is intended to be called directly. For each date in the date range, it downloads the raw files, reads them to an array, and deletes the raw files. By default it returns a tidy data.table, but it can also return a 3D array.
1 | cpcQueryDateRange(start_date, end_date, tidy = TRUE)
|
start_date |
the first data to download. Must be a date object – see |
end_date |
as with |
tidy |
if TRUE, the output data will be a tidy data.table with columns lon, lat, and prcp_mm. if FALSE, the output data will be a 3D array with indices [lon, lat, time] |
returns a list with two entries: download_success and precip_data.
download_success is a data.frame with columns date and success, which define whether data was successfully downloaded for
each date in the range seq(start_date, end_date, 1)
.
precip_data is a 3D array if tidy is FALSE and a data.table if tidy is TRUE.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.