lawn_remove: Remove things from a FeatureCollection

Description Usage Arguments Value See Also Examples

View source: R/remove.R

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

1
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

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

lawn documentation built on Jan. 6, 2021, 5:07 p.m.