line_length: Calculate line length by category within buffers of points

Description Usage Arguments Details

Description

For a set of points, buffer each point and calculate the total length of surronding lines by type. Often used to calculate the length of road by type.

Usage

1
2
line_length(points, IDs, buffer_size, lines, categories,
  shorten_names = TRUE)

Arguments

points

Spatial points object

IDs

Unique ID field in points

buffer_size

Radius used to buffer points.

lines

Spatial lines object, which contains road classes

categories

Road types in the spatial line object

shorten_names

Details

The length of road by type is a common variable in land use regression models.


gisUTM/lur documentation built on May 31, 2019, 1:56 p.m.