input should use meshcode under the 1km mesh size.
neighbor_mesh(meshcode, contains = TRUE)
find_neighbor_mesh(meshcode = NULL, contains = TRUE)
character
. mesh code
logical. contains input meshcode (default TRUE
)
neighbor_mesh(53394501)
#> <meshcode[9]>
#> [1] 53393590 53393591 53393592 53394500 53394501 53394502 53394510 53394511
#> [9] 53394512
neighbor_mesh(533945011)
#> <meshcode[9]>
#> [1] 533935904 533935913 533935914 533945002 533945004 533945011 533945012
#> [8] 533945013 533945014
neighbor_mesh(533945011, contains = FALSE)
#> <meshcode[8]>
#> [1] 533935904 533935913 533935914 533945002 533945004 533945012 533945013
#> [8] 533945014