lawn_remove: Remove things from a FeatureCollection

View source: R/remove.R

lawn_removeR Documentation

Remove things from a FeatureCollection

Description

Takes a data-FeatureCollection of any type, a property, and a value and returns a data-FeatureCollection with features matching that property-value pair removed.

Usage

lawn_remove(features, property, value, lint = FALSE)

Arguments

features

A set of input features.

property

Property to filter.

value

Value to filter.

lint

(logical) Lint or not. Uses geojsonhint. Takes up increasing time as the object to get linted increases in size, so probably use by default for small objects, but not for large if you know they are good geojson objects. Default: FALSE

Value

A data-FeatureCollection.

See Also

Other data functions: lawn_featurecollection(), lawn_feature(), lawn_filter(), lawn_geometrycollection(), lawn_linestring(), lawn_multilinestring(), lawn_multipoint(), lawn_multipolygon(), lawn_point(), lawn_polygon(), lawn_random(), lawn_sample()

Examples

cat(lawn_data$remove_features)
lawn_remove(lawn_data$remove_features, 'marker-color', '#00f')
lawn_remove(lawn_data$remove_features, 'marker-color', '#0f0')

ropensci/lawn documentation built on May 18, 2022, 9:58 a.m.