Dear r users,
I have the following script that I would like to run repeatedly for
different values of y ( the list of which I created below).
y.list <- list(y1=runif(10), y2 <- runif(10), y3 <- runif(10))

and here is the script I want to run for different values of y.

############

x <- 1:10
y <- 1:10
z<- 1:10

da1<-data.frame(x,y,z)
***** this file is an aready existing ascii file that I use to form the
raster
library(raster)

setwd("f:/Grids")
r2 <- raster("idgd_wgs.asc")
library(raster)

library(gstat)
IDW <- gstat(id = "z", formula = z~1, locations = ~x+y, data=da1,
set=list(idp =2))
IDWRaster <- interpolate(r2, IDW)

Any suggestion appreciated.
Thanks.
minti

	[[alternative HTML version deleted]]

