geo_filter: Subset a geometric object using column values

View source: R/geo_filter.R

geo_filterR Documentation

Subset a geometric object using column values

Description

This function allows to subset any geometric object for which all required getters are available.

Usage

geo_filter(obj, ..., update = TRUE)

Arguments

obj

gridded(1)
the object to derive a subset from.

...

subset based on logical predicates defined in terms of the columns in x (of both, points, features and groups). Multiple conditions are combined with &. Only rows where the condition evaluates to TRUE are kept.

update

logical(1)
whether or not to update the window slot after deriving the subset.

Value

geom of the subset of obj.

See Also

Other geometry tools: geo_locate(), geo_pull(), geo_reflect(), geo_rotate(), geo_scale(), geo_skew(), geo_stretch(), geo_translate()

Examples

geo_filter(obj = gtGeoms$point, y < -10)

geo_filter(obj = gtGeoms$point, attr %in% c("A", "C", "E"))

EhrmannS/geometr documentation built on Jan. 31, 2024, 9:13 a.m.