Skip to contents

Calculate neighborhood matrix from maximum distance between points

Usage

neib_dist(coor, dist = NULL, lon = "lon", lat = "lat")

Arguments

coor

data.frame with coordinates.

dist

numeric, maximum distance (in km) to consider two points as neighbors, default = NULL (calculates the minimum distance that guarantee every point will have at least one neighbor).

lon

string, default = "lon", column with longitude.

lat

string, default = "lat", column with latitude.

Value

neighborhood matrix.