combine_spdf | R Documentation |
Combine a list of spdfs together and group by binomialk name
combine_spdf(input, binomial = "binomial")
input |
a list of lists containing each spdf |
binomial |
Variable relating to the name of the column where binomials |
x <- pp
y <- IUCN
y <- y[y@data$legend == 'Extant (resident)',]
y <- raster::aggregate(y, by = 'binomial',dissolve = TRUE)
x$binomial <- x$species
list <- list()
for(i in seq(0,100,by =20)){
j <- i+20
list[[j/20]] <- SpatialPolygonsDataFrame(polygons(spec_poly)[i:j],spec_poly@data[i:j,])
}
test <- combine_spdf(list[1:2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.