Calculates the number of data-Point's that fall within the set of data-Polygon's

lawn_count(polygons, points, in_field, out_field = "count", 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 data-FeatureCollection

See also

Examples

if (FALSE) { # using data in the package cat(lawn_data$points_count) cat(lawn_data$polygons_count) lawn_count(lawn_data$polygons_count, lawn_data$points_count, 'population') }