Learn R Programming

areaOfEffect (version 0.2.4)

countries: World Country Polygons with Pre-calculated AoE Bounds

Description

An sf object containing country polygons from Natural Earth (1:50m scale) with pre-calculated bounding boxes for area of effect analysis.

Usage

countries

Arguments

Format

An sf data frame with 237 rows and 9 variables:

iso2

ISO 3166-1 alpha-2 country code (e.g., "FR", "BE")

iso3

ISO 3166-1 alpha-3 country code (e.g., "FRA", "BEL")

name

Country name

continent

Continent name

bbox

Original bounding box (xmin, ymin, xmax, ymax) in Mollweide

bbox_equal_area

AoE bounding box at scale sqrt(2)-1 (equal areas)

bbox_equal_ray

AoE bounding box at scale 1 (equal linear distance)

halo_equal_area_scale

Scale factor that produces halo area = country area (with land mask)

geometry

Country polygon in WGS84 (EPSG:4326)

Examples

Run this code
# Get France
france <- countries[countries$iso3 == "FRA", ]

# Use directly with aoe()

Run the code above in your browser using DataLab