uniqueGeo2
NULL, or a second matrix of geographical coordinates, without replicates of the same location.
If NULL, scaled distances among uniqueGeo
locations are computed. Otherwise, scaled distances between locations in the two input matrices are computed.
rho.mapping
A set of indices controlling which elements of the rho
scale vector scales which dimension(s) of the space in which (spatial)
correlation matrices of random effects are computed. Scaled distance is generally computed as * rho[rho.mapping]
. As shown inthe Example, if one wishes to combine isotropic geographical distance and some environmental distance, the coordinates being latitude, longitude and one environmental variable, the scaled distance may be computed
as (say) (lat,long,env) *rho[c(1,1,2)]
so that the same scaling rho[1]
applies for both geographical coordinates. In this case, rho
should have length 2 and rho.mapping
should be c(1,1,2)
.
dist.method
method
argument of proxy::dist
function (by default, "Euclidean"
, but e.g. "Geodesic"
can be used to compute spherical distances.