[R-sig-Geo] remove.holes - library(wild1)

Ingo Holz Ingo.Holz at uni-hohenheim.de
Fri Jan 27 12:10:41 CET 2012


Hallo,

 I try to use function remove.holes (library wild1) to remove holes from a 
SPDF.

 If test is a SPDF. It works with

 for(i in (1:length(test at polygons))){
	test at polygons[[i]] <- remove.holes(test at polygons[[i]])
	}

 I think there must be a way without a loop. Maybe:

 do.call(remove.holes, test at polygons)

 ???

Best wishes and thank you for your help in advance.
Ingo



More information about the R-sig-Geo mailing list