Convenience wrapper: fetches Natural Earth via ne_source() and builds a
GeoScale nested continent -> subregion -> country -> feature,
weighted by population and GDP.
Value
A GeoScale, with scale and source recorded in @meta so the
object is self-documenting and reproducible.
Details
feature is the leaf: the Natural Earth feature. country sits above it as
a grouping of leaves, so it can only ever be coarser than feature.
Do not derive area weights from scale = 110; see add_area_geoscale().
Examples
if (FALSE) { # \dontrun{
gs <- ne_geoscale(scale = 110)
# roll population up from countries to sub-regions
lf <- S7::prop(gs, "leaftable")
pop <- data.frame(country = lf$country, pop = lf$pop_est)
recast_geoscale(pop[!is.na(pop$country), ], gs,
source = "country", target = "subregion", rule = "sum")
} # }
