# NOT RUN {
# Data
rsp <- raster::stack(system.file("extdata/sp_layers.tif",
package = "biosurvey"))
names(rsp) <- paste0("Species_", 1:5)
# Species data from RasterStack
sp_data <- stack_2data(species_layers = rsp)
summary(sp_data)
# }
Run the code above in your browser using DataLab