Find most frequent occurrences in the neighbors and fill in the missing hexagon

hex_fill(
  .data,
  ids,
  var,
  h3var = "h3",
  radius_max = 3,
  mode = c("same", "progressive")
)

Arguments

.data

data with h3 columm

ids

h3 ids to find

var

variable to fill

h3var

name of the h3 column

radius_max

maximum of radius of hexagons to find

mode

use the same number of neighbours (same) or only increase neighbors in those hexagon with missing data at the smaller radius (progressive)

Details

progressive maximum the local influences while the other treats all missing hexagon the same.