initial.hwy2ray.subset: initial.hwy2ray.subset

View source: R/places and rays fcns.R

initial.hwy2ray.subsetR Documentation

initial.hwy2ray.subset

Description

Sets up road objects for ray measures. Ensures uniform CRS, trims hwys to those surrounding the Place, and parses arguments around which hwys to include.

Usage

initial.hwy2ray.subset(
  place,
  hwy.sf,
  always.include = c("I"),
  include.intersecting = FALSE,
  hwy.types = NULL,
  drop.NA = TRUE,
  buffer.meters = 300,
  ...
)

Arguments

place

Single polygon, likely representing a Place, for which to generate rays.

hwy.sf

Sf object that represents highways with NHPN SIGNT1 & SIGN1 columns

always.include

Type(s) of highways to always include for ray measure if include.intersecting is false. By default only interstates

include.intersecting

Whether or not to include additional highway types if they intersect with one or more of the core/always included hwy types.

hwy.types

Other types of hwys to include if and only if they intersect with the core, "always.included" type(s). Only relevant if include.intersecting is true. No filter applied if left as NULL (default).

drop.NA

Whether to drop rows with NA in the SIGNT hwy-type identifier column.

buffer.meters

Amount of padding around the Place to retain when trimming highways to place and surrounding area. Defaults to 300 meters.


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