Skip to content

remove.holes - library(wild1)

2 messages · Ingo Holz, Edzer Pebesma

#
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
#
untried:

lapply(test at polygons, remove.holes)
On 01/27/2012 12:10 PM, Ingo Holz wrote: