subset.polys.divs: subset.polys.divs

View source: R/polys fcns.R

subset.polys.divsR Documentation

subset.polys.divs

Description

Preps "division" data, whether water, highways, etc, to generate polygon measure for supplied region. If, as with NHPN data, the divisions have an "identifier column," the later arguments can be specified to control what divisions are kept for polygon creation.

Usage

## S3 method for class 'polys.divs'
subset(
  region,
  div.sf,
  div.identifier.column = NULL,
  always.include = NULL,
  include.intersecting = F,
  remove.NA.divs = T,
  ...
)

Arguments

region

1-row sf polygon with region.id/region.type columns to create sub-division measures for

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.


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