read_ecoregions: Return the 'ecoregions' data source as an 'sf' object

View source: R/read_ecoregions.R

read_ecoregionsR Documentation

Return the ecoregions data source as an sf object

Description

Returns the raw data source ecoregions, with unique polygon identifiers polygon_code and polygon_id. Multiple polygons can have the same region_name. The coordinate reference system is 'BD72 / Belgian Lambert 72' (EPSG-code 31370).

Usage

read_ecoregions(file = file.path(locate_n2khab_data(), "10_raw/ecoregions"))

Arguments

file

The absolute or relative file path of the data source. The default follows the data management advice in the vignette on data storage (run vignette("v020_datastorage")). It uses the first n2khab_data folder that is found when sequentially climbing up 0 to 10 levels in the file system hierarchy, starting from the working directory.

Details

Original columns of the raw data source were mapped as:

  • CODE -> polygon_code

  • NR -> polygon_id

  • REGIO -> region_name

  • DISTRICT -> district_name

Apart from the label, there is no complementary information between polygon_code and polygon_id.

Value

A Simple feature collection of geometry type MULTIPOLYGON.

Examples

## Not run: 
ecoregions <- read_ecoregions()
ecoregions

## End(Not run)


inbo/n2khab documentation built on Jan. 15, 2025, 9:36 a.m.