min_distthreshold: Get minimum threshold of distance that makes sure each...

Description Usage Arguments Value Examples

View source: R/weights.R

Description

Get minimum threshold of distance that makes sure each observation has at least one neighbor

Usage

1
min_distthreshold(geoda_obj, is_arc = FALSE, is_mile = TRUE)

Arguments

geoda_obj

An object of [geoda] class

is_arc

(optional) FALSE (default) or TRUE, compute arc distance between two observations

is_mile

(optional) TRUE (default) or FALSE, convert distance unit from mile to km.

Value

dist A real value of minimum threshold of distance

Examples

1
2
3
4
5
6
7
## Not run: 
guerry_path <- system.file("extdata", "Guerry.shp", package = "rgeoda")
guerry <- geoda_open(guerry_path)
dist_thres <- min_distthreshold(guerry)
dist_thres

## End(Not run)

lixun910/rgeoda documentation built on March 19, 2021, 3:49 p.m.