The worker function of network_listw.
network_listw_worker(
points,
lines,
maxdistance,
dist_func,
direction = NULL,
mindist = 10,
matrice_type = "B",
verbose = FALSE,
digits = 3,
tol = 0.1
)
A list of neihbours as weights.
A feature collection of points corresponding to start and end points. It must have a column fid, grouping the points if necessary.
A feature collection of lines representing the network
The maximum distance between two observation to consider them as neighbours.
A vectorized function converting spatial distances into weights.
Indicate a field giving information about authorized travelling direction on lines. if NULL, then all lines can be used in both directions. Must be the name of a column otherwise. The values of the column must be "FT" (From - To), "TF" (To - From) or "Both".
The minimum distance between two different observations. It is important for it to be different from 0 when a W style is used.
The type of the weighting scheme. Can be 'B' for Binary, 'W' for row weighted, or 'I' (identity), see the documentation of spdep::nb2listw for details
A Boolean indicating if the function should print its progress
the number of digits to keep in the spatial coordinates ( simplification used to reduce risk of topological error)
A float indicating the spatial tolerance when points are added as vertices to lines.
#no example provided, this is an internal function
Run the code above in your browser using DataLab