distlag: Compute custom distance lags

Description Usage Arguments Details Value Note Author(s)

Description

Computes the centre of a set of distance classes from a geographical distance matrix or a data frame containing the coordinates. The minimum, maximum and interval distances can be specified by user.

Usage

1
distlag(dist, dmin = 0, distance.lag = NULL, dist.lag.max = NULL)

Arguments

dist

A data.frame with 2 columns containing the corrdinates or a distance matrix (class dist).

dmin

The minimum distance to be considered. Default is 0.

distance.lag

The distance increment between two successive centre of distance classes. A default value is computed on the basis of the function hist.

dist.lag.max

The maximum distance to be considered.

Details

distlag creates a set of bins describing the distance lag classes on the basis of the point spatial location and a user-defined lag interval. Spatial information is provided as a distance matrix (class "dist") or a set of coordinates (data.frame). Data frame must contain 1 or 2 columns (i.e. data points in 1 or 2 dimensions). Three dimensional data designs can be accounted for using a dist object. NAs are not allowed and should be removed prior to using the function.

Value

A vector of values corresponding to the centre of successive distance classes

Note

This function was developped for the forthcoming R package ggene.

Author(s)

Jean-Pierre Rossi


ECPaysage documentation built on May 2, 2019, 4:35 p.m.