get_EuropeanCountries: Get administrative boundaries for European countries

Description Usage Arguments Value Author(s) Examples

View source: R/utils-spatial.R

Description

Uses the rnaturalearth package to retrieve global administrative boundaries, which are reprojected, and then clipped to a bounding box around Europe.

Usage

1
2
3
4
5
6
get_EuropeanCountries(
  scale = 110,
  bbox = europe_100km,
  crs = sf::st_crs(europe_100km),
  ...
)

Arguments

scale

(optional) The numeric scale to pass to rnaturalearth::ne_countries(). Acceptable values are 10 (highres), 50 (midres), 110 (lowres). Defaults to 110.

bbox

(optional) A sf object from which a bounding box can be retrieved to clip the countries boundaries. Defaults to the bounding box of the europe_100km grid included in the rN2000 package.

crs

(optional) A crs, sf, or numeric object giving a CRS to reproject the data to. If crs is numeric, this should be an EPSG code. Defaults to ETRS89-extended / LAEA Europe.

...

other parameters passed to rnaturalearth::ne_countries()

Value

A sf object with the administrative boundaries of the relevant European countries.

Author(s)

Matt Lewis

Examples

1
2
3
4
## Not run: 
get_EuropeanCountries()

## End(Not run)

iiasa/rN2000 documentation built on Dec. 20, 2021, 6:55 p.m.