Description Usage Arguments Details
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.
1 2 | line_length(points, IDs, buffer_size, lines, categories,
shorten_names = TRUE)
|
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 |
The length of road by type is a common variable in land use regression models.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.