ecoregionsToGrid: Aggregates EPA ecoregions to a grid.

View source: R/ecoregionsToGrid.R

ecoregionsToGridR Documentation

Aggregates EPA ecoregions to a grid.

Description

Aggregates EPA ecoregions to a grid.

Usage

ecoregionsToGrid(grid, level, simplify, complete = F)

Arguments

grid

a stars grid created by createAggregationGrid.

level

integer between 1-4. The EPA ecoregion level to aggregate.

simplify

integer. Passed to sf::st_simplify on EPA ecoregions polygons before aggregating. Massively decreases computation time when set to a high number.

complete

logical. Is output sparse?

Value

a tibble containing 4 columns: grid cell ID, EPA ecoregion class, grid cell geometry and grid cell class proportion.


asgersvenning/bachelor documentation built on May 2, 2023, 7:06 a.m.