Skip to contents

Function to build neighborhoods from real travel distances inside Colombia by land or river transportation.

Usage

neighborhoods(query_vector, threshold = 2)

Arguments

query_vector

Codes of the municipalities to consider for the neighborhoods.

threshold

Maximum traveling time around each municipality.

Value

neighborhood object according to the introduced threshold.

Examples

query_vector <- c("05001", "05002", "05004", "05021", "05030", "05615")
neighborhoods(query_vector, 2)
#> Characteristics of weights list object:
#> Neighbour list object:
#> Number of regions: 6 
#> Number of nonzero links: 26 
#> Percentage nonzero weights: 72.22222 
#> Average number of links: 4.333333 
#> 
#> Weights style: W 
#> Weights constants summary:
#>   n nn S0       S1       S2
#> W 6 36  6 3.328214 24.09641