Polys.wrapper: Polys.wrapper

Polys.wrapperR Documentation

Polys.wrapper

Description

Wraps all the functions used to generate the polygonal subdivision measure.

Usage

Polys.wrapper(region, div.sf, fill.gaps = T, ...)

Arguments

region

sf object representing neighborhoods to allocate to subdivision

...

Arguments passed on to subset.polys.divs, Fix.all.hwys, polygonal.div

div.sf

sf object with division.

div.identifier.column

If 'div.sf' has an identifier column to be used to filter by, supply here. Must be supplied for other subset arguments to work; NULL by default.

always.include

Always include divisions that have this value in the identifier column

include.intersecting

Include additional divisions that don't have above identifier, but which intersect with divs that do.

remove.NA.divs

Whether or not to remove all divisions with an NA in the identifier column.

return.gap.map

Return mapview leaflet to visualize output of fcn

divs

linear sf representing divisions.

negative.buffer

Shrink region by this amount only for calculating polygons. Useful for handling shpfiles w/ different resolutions, especially for regions along an international border. Defaults to 100m.

min.size

Minimum (area) size for population, in meters. Defaults to 5e5, or 1/2 a km^2. Set to NULL to not filter by size.

return.sf

If true, returns an sf object, w/ one row per polygon subdivision, that can easily be mapped or allocated to neighborhoods. If false (default), returns number of polygons.


kmcd39/divM documentation built on Oct. 21, 2023, 11:28 p.m.