View source: R/costdistances.r
| costdistances | R Documentation | 
calculates a cost distance matrix, to be used with run.popgensim
costdistances(landscape, locs, method, NN)
| 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 | 
a costdistance matrix between all pairs of locs
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.