p2p: Function to calculate dispersal distances based on cost...

View source: R/popdynfun.r

p2pR Documentation

Function to calculate dispersal distances based on cost distances

Description

converts cost distances to probabilities: to reach a certain patch[ d0 average distance of p of all individuals, for example d0=100, p =0.5 -> 50% procent of all migrating individuals go up to 100 m.

Usage

p2p(x, d0, p)

Arguments

x

Cost (Euclidean) distance matrix

d0

dispersal distance

p

of all individuals in a population

Value

a dispersal probability matrix


PopGenReport documentation built on Oct. 11, 2023, 9:07 a.m.