combine_spdf: Combine a list of spdfs together and group by binomialk name

View source: R/combine_spdf.R

combine_spdfR Documentation

Combine a list of spdfs together and group by binomialk name

Description

Combine a list of spdfs together and group by binomialk name

Usage

combine_spdf(input, binomial = "binomial")

Arguments

input

a list of lists containing each spdf

binomial

Variable relating to the name of the column where binomials

Examples

   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])

dilljone/EvoGEAR documentation built on May 7, 2023, 5:12 a.m.