
Check a geoscale against the model's declared regions
Source:R/geoscale.R
check_geoscale_regions.RdWarns when the two disagree. This is deliberately a warning, not an error:
config@region remains authoritative, and a geoscale covering more ground
than the model uses (a world map for a two-country model) is normal and
useful.
Arguments
See also
Other geoscale:
get_process_groups(),
gg_map(),
model_clusters(),
process_cluster_sweep(),
setGeoscale,config-method
Examples
# returns the declared regions the geoscale cannot place, and warns about them
gs <- topia$geoscales$squares
check_geoscale_regions(gs, c("W1", "W2", "C1")) # all placed: character(0)
#> Warning: The geoscale has no code at level 'province' for 3 declared region(s): C1, W1, W2. Maps and region-level reporting will omit them.
suppressWarnings(check_geoscale_regions(gs, c("W1", "NOWHERE")))