calcMantel: Calculate Mantel correlation (rM) from points and/or distances.
Description
Calculation of rM from POINTS geolocators and/or GPS
data, not accounting for uncertainty. If you've already calculated
distances between points, you can use those instead.
Distances between each pair of
originPoints and each pair of targetPoints, respectively,
in meters. If you used distances as inputs instead, then these are just
what you fed in.
Arguments
targetPoints
A sf POINTS object, with length number of animals
tracked. Each point indicates the point estimate location in the
non-release season.
originPoints
A sf POINTS object, with length number of animals
tracked. Each point indicates the release location of an animal.
targetDist
Distances between the target locations of the tracked
animals. Symmetric matrix with number of animals rows and columns,
although really you only need the lower triangle filled in.
originDist
Distances between the origin locations of the tracked
animals. Symmetric matrix with number of animals rows and columns,
although really you only need the lower triangle filled in.
References
Ambrosini, R., A. P. Moller, and N. Saino. 2009. A quantitative measure of
migratory connectivity. Journal of Theoretical Biology 257:203-211.
tools:::Rd_expr_doi("10.1016/j.jtbi.2008.11.019")