Description Usage Arguments Value Author(s) See Also Examples
Calculates the population standard deviation (i.e. denominator = n, not n-1) of values from data-Point's within a set of data-Polygon's
1 2 3 4 5 6 7 | lawn_deviation(
polygons,
points,
in_field,
out_field = "deviation",
lint = FALSE
)
|
polygons |
Polygon(s) (data-FeatureCollection<(data-Polygon)>) defining area to aggregate |
points |
Points (data-FeatureCollection<(data-Point)>) with values to aggregate |
in_field |
Character for the name of the field on |
out_field |
Character for the name of the field on the output polygon FeatureCollection that will store the resultant value. |
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: |
polygons with appended field representing deviation, as a data-FeatureCollection
Jeff Hollister hollister.jeff@epa.gov
Other aggregations:
lawn_average()
,
lawn_collect()
,
lawn_count()
,
lawn_max()
,
lawn_median()
,
lawn_min()
,
lawn_sum()
,
lawn_variance()
1 2 3 4 5 6 | ## Not run:
ex_polys <- lawn_data$polygons_aggregate
ex_pts <- lawn_data$points_aggregate
lawn_deviation(ex_polys, ex_pts, "population")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.