Learn R Programming

spNetwork (version 0.2.1)

prepare_elements_netlistw: Data preparation for network_listw

Description

Function to prepare selected points and selected lines during the process.

Usage

prepare_elements_netlistw(is, grid, snapped_points, lines, maxdistance)

Arguments

is

The indices of the quadras to use in the grid

grid

A SpatialPolygonsDataFrame representing the quadras to split calculus

snapped_points

The start and end points snapped to the lines

lines

The lines representing the network

maxdistance

The maximum distance between two observation to considere them as neighbours.

Value

A list of two elements : selected points and selected lines

Examples

Run this code
# NOT RUN {
#no example provided, this is an internal function
# }

Run the code above in your browser using DataLab