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]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to