Finds the grid resolution that produces cells closest to the target area.
This is primarily used internally by hexify_grid and
hex_grid. Most users should use those functions directly.
Examples
if (FALSE) { # \dontrun{
# Create a temporary grid to get aperture settings
temp_grid <- list(aperture = 3, topology = "HEXAGON")
class(temp_grid) <- "hexify_grid"
# Find resolution for 1000 km^2 cells
res <- dg_closest_res_to_area(temp_grid, area = 1000,
metric = TRUE, show_info = TRUE)
print(res)
} # }