Skip to content
Prev 304019 / 398506 Next

Loop from List in Geospatial Modeling Environment

Does anyone know how to loop in GME using a list of text values.  I am trying
to create home ranges for each animal in a point shapefile of locations. 
Here is an example of the Command Text I am trying to use:

l<-'SGF4037', 'SGF4244';

for (i in ls()){
kde(in=paste("SGF.shp"), out=paste(i,"_SGF.img"), bandwidth="CVh",
cellsize=50, where=paste(?BAND=",ls()));
};

"l" is my list attributes in the "BAND" field.



--
View this message in context: http://r.789695.n4.nabble.com/Loop-from-List-in-Geospatial-Modeling-Environment-tp4641149.html
Sent from the R help mailing list archive at Nabble.com.