Skip to contents

ProtConn

Usage

ind_ProtConn(distkm, dkm, bioregion, area = NULL)

Arguments

distkm

distance matrix in km. Can be created by the 'in_sea_distance()' in this package

dkm

median dispersal distance in km for the negative exponential dispersal kernal (i.e. p <- 1-pexp(distkm,log(2)/dkm))

bioregion

sf polygon of the study area (i.e. the sea!)

area

output of data_CPCAS_areas

Value

numeric

Examples

if (FALSE) { # \dontrun{
require(MarConsNetData)
bioregion <- data_bioregion()
areas <- data_CPCAD_areas(bioregion,zones=FALSE) |>
  dplyr::mutate(area=sf::st_area(geoms))
distkm <- calc_in_sea_distance(cellsize=100000,bioregion,areas)
PC <- ind_ProtConn(distkm,dkm=100, area=areas)
} # }