st_filter_prevR: Spatial filter

View source: R/st_filter_prevR.r

st_filter_prevRR Documentation

Spatial filter

Description

This function forces points of an object of class [sf] located outside the limits defined by an object of class sp::SpatialPolygons to NA.

Usage

st_filter_prevR(x, y)

Arguments

x

object of class sf::sf

y

object of class sf::sf

Details

The function try to apply sf::st_filter(). In case it fails, it will try to rebuild y according to spherical geometry (see sf::st_as_s2()) before filtering. If it still fail, it will return x unfiltered.

Value

Return x filtered by y

See Also

sf::st_filter().


prevR documentation built on May 31, 2023, 7:32 p.m.