lawn_min: Minimum value of a field among points within polygons

View source: R/min.R

lawn_minR Documentation

Minimum value of a field among points within polygons

Description

Calculates the minimum value of a field for a set of data-Point's within a set of data-Polygon's

Usage

lawn_min(polygons, points, in_field, out_field = "min", lint = FALSE)

Arguments

polygons

a data-FeatureCollection of data-Polygon features

points

a data-FeatureCollection of data-Point features

in_field

(character) the field in input data to analyze

out_field

(character) the field in which to store results

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 FeatureCollection of data-Polygon features with properties listed as out_field.

See Also

Other aggregations: lawn_average(), lawn_collect(), lawn_count(), lawn_deviation(), lawn_max(), lawn_median(), lawn_sum(), lawn_variance()

Examples

## Not run: 
poly <- lawn_data$polygons_average
pt <- lawn_data$points_average
lawn_min(poly, pt, 'population')

## End(Not run)

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