osm_summarise: Summarise OpenStreetMap (OSM) features by group

View source: R/osm_helpers.R

osm_summariseR Documentation

Summarise OpenStreetMap (OSM) features by group

Description

Generally you will do this after querying the OSM features, binding the results, intersecting with an irregular polygon (e.g. a burnscar).

Usage

osm_summarise(osm_sf, ..., .f, units = NULL)

Arguments

osm_sf

(sf) SF data you want to summarise.

...

(unquoted character; optional) columns to group by

.f

(character) summary function. At the moment only "length", "area" or "count". Assumes the underlying data are additive.

units

(character, default = NULL) units to summarise to, usually "km" or "km^2. If left blank it will use some variant of meters.

Details

Requires the geometry column to be called geometry (and not geos or some-such).

Value

a simple tibble with the grouped columns and an additional summary column


baslat/sak documentation built on April 14, 2025, 4:14 p.m.