poly_in_boundary: Filtered Import

View source: R/fun_import.R

poly_in_boundaryR Documentation

Filtered Import

Description

Helper function to read only features contained in a study area rather than load every feature in the dataset. Called by loadSpatial() for most baseline dataset imports to reduce memory load and speed up computation.

Usage

poly_in_boundary(x, y, layer = NULL)

Arguments

x

Folder where files are stored

y

The study area outline to query the data

layer

Name of the layer, if required

Value

A sf dataframe ready to be used by the model. If no features are intersecting the defined boundary, returns a sf dataframe of length 0.


ecoservR/ecoserv_tool documentation built on April 5, 2025, 1:49 a.m.