I want to download and unzip many files from the FTP and create variables for year, month, and day for each file based on the naming mechanism. I am stack with the following lines and any help will be appreciated. library(RCurl) # Download the files for 1985. url = "ftp://ftp.cpc.ncep.noaa.gov/fews/AFR_CLIM/ARC2/DATA/1985/" filenames = getURL(url, ftp://ftp.use.epsv/ = FALSE, dirlistonly = TRUE) crlf = TRUE Peter Maclean Department of Economics UDSM [[alternative HTML version deleted]]
I want to download and unzip many files from the FTP and create variables for year, month, and day for each file based on the naming mechanism. I am stack with the following lines and any help will be highly appreciated. I want to create a spreadsheet file with lat lon and estimate as headers. library(RCurl) # Download the files for 1985. url = "ftp://ftp.cpc.ncep.noaa.gov/fews/AFR_CLIM/ARC2/DATA/1985/" filenames = getURL(url, ftp://ftp.use.epsv/ = FALSE, dirlistonly = TRUE) crlf = TRUE Peter Maclean Department of Economics UDSM [[alternative HTML version deleted]]