Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

costdistances

Calculates cost distances for a given landscape (resistance matrix)


Description

calculates a cost distance matrix, to be used with run.popgensim

Usage

costdistances(landscape, locs, method, NN)

Arguments

landscape

a raster object coding the resistance of the landscape

locs

coordinates of the subpopulations

method

defines the type of cost distance, types are "least-cost", "rSPDistance" or "commute (Circuitscape type)"

NN

number of next neighbours recommendation is 8

Value

a costdistance matrix between all pairs of locs


PopGenReport

A Simple Framework to Analyse Population and Landscape Genetic Data

v3.0.4
GPL
Authors
Bernd Gruber [aut, cre], Aaron Adamack [aut]
Initial release
2019-02-04

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.