Description Usage Arguments Details Value Author(s) Examples
Calculates a geographic distance matrix based on a PresenceAbsence
or
a two column matrix
of x(longitude) and y(latitude).
1 | lets.distmat(xy, asdist = TRUE, ...)
|
xy |
A |
asdist |
Logical, if |
... |
Arguments to be passed to the function |
This function basically facilitates the use of rdist.earth
on a PresenceAbsence
object, allowing also the user to have directly
a dist
object.
The user can choose between dist
and matrix
class object to be returned.
The resulting values are in kilometers (but see the argument 'miles' in rdist.earth
).
Bruno Vilela & Fabricio Villalobos
1 2 3 4 5 | ## Not run:
data(PAM)
distPAM <- lets.distmat(PAM)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.