Skip to content
Prev 175056 / 398506 Next

Reading in files with variable parts to names

Steve Murray <smurray444 <at> hotmail.com> writes:
< April of 1986 - 'comp' is fixed in each case. Years range between
comp198601, comp198602, ...
gr = expand.grid(as.character(1986:1995),sprintf("%02d", 1:12) ,
  stringsAsFactors =FALSE)
filelist = paste(a[,1],a[2,],".asc",sep="")