Dear Reserchers,

MERRY CHRISTAMS

I have several ASCII file and I wish to merge in a file with RASTER library
"merge" function

merge(x, y, ...)


es: file1.asc, file2.asc, file3.asc, file4.asc, file5.asc

my.list <-list("file1.asc", "file2.asc", "file3.asc", "file4.asc",
"file5.asc")


Dem.list <- list()

for(m in 1:length(my.list)){
dem <- raster(my.list[[m]])
dem <- setMinMax(dem)
Dem.list[[m]] <- dem
}

Now I have a list of DEM to merge with the function

rm <- merge(Dem.list[[1]],Dem.list[[1]],Dem.list[[3]],Dem.list[[4]],Dem.list[[5]])

I wish to use a loop with "merge" because I have more of 50 files and
many areas to do this.
Gianni

	[[alternative HTML version deleted]]

