cpcDownloadMultiDay: Download a Date Range from the CPC FTP Server

Description Usage Arguments Value

View source: R/cpcDownloadMultiDay.R

Description

This function is not intended to be called directly. It downloads a date range from the CPC FTP server by using cpcDownloadOneDay inside of a try statement. Any dates that are not successfully downloaded are tried a second time.

Usage

1
2
cpcDownloadMultiDay(start_date, end_date, download_folder = getwd(),
  overwrite = F)

Arguments

start_date

first date to download; must be a date object

end_date

last date to download; must be a date object

download_folder

the folder to which to download the files. Defaults to getwd()

overwrite

if TRUE, will overwrite any file with the same name in the download_folder. If FALSE, will not overwrite any file – if a file with the same name already exists, will not download again.

Value

returns a data.frame with columns date and success. The success column indicates whether the raw file for that date was successfully downloaded.


jdossgollin/cpcRain documentation built on April 3, 2018, 12:28 a.m.