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
remove.holes - library(wild1)
2 messages · Ingo Holz, Edzer Pebesma
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