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

Edzer Pebesma edzer.pebesma at uni-muenster.de
Fri Jan 27 12:44:53 CET 2012


untried:

lapply(test at polygons, remove.holes)

On 01/27/2012 12:10 PM, Ingo Holz wrote:
> 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
> 
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo

-- 
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of Münster
Weseler Straße 253, 48151 Münster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763  http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics      e.pebesma at wwu.de



More information about the R-sig-Geo mailing list