Function to build neighborhoods from real travel distances inside Colombia by land or river transportation.
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