| make.RapData | R Documentation | 
This function prepares spatially explicit planning unit, species data, and landscape data layers for RAP processing.
make.RapData(
  pus,
  species,
  spaces = NULL,
  amount.target = 0.2,
  space.target = 0.2,
  n.demand.points = 100L,
  kernel.method = c("ks", "hypervolume")[1],
  quantile = 0.5,
  species.points = NULL,
  n.species.points = ceiling(0.2 * terra::global(species, "sum", na.rm = TRUE)[[1]]),
  include.geographic.space = TRUE,
  scale = TRUE,
  verbose = FALSE,
  ...
)
| pus | 
 | 
| species | 
 | 
| spaces | 
 | 
| amount.target | 
 | 
| space.target | 
 | 
| n.demand.points | 
 | 
| kernel.method | 
 | 
| quantile | 
 | 
| species.points | 
 | 
| n.species.points | 
 | 
| include.geographic.space | 
 | 
| scale | 
 | 
| verbose | 
 | 
| ... | additional arguments to  | 
A new RapData object.
RapData, RapData().
## Not run: 
# load data
cs_pus <- sf::read_sf(
 system.file("extdata", "cs_pus.gpkg", package = "raptr")
)
cs_spp <- terra::rast(
  system.file("extdata", "cs_spp.tif", package = "raptr")
)
cs_space <- terra::rast(
  system.file("extdata", "cs_space.tif", package = "raptr")
)
# make RapData object using the first 10 planning units in the dat
x <- make.RapData(cs_pus[1:10,], cs_spp, cs_space,
                  include.geographic.space = TRUE)
# print object
print(x)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.