| subdivide_edges | R Documentation |
Construct a subdivision of the network by subdividing edges at interior points. Subdividing means that a new node is added on an edge, and the edge is split in two at that location. Interior points are those points that shape a linestring geometry feature but are not endpoints of it.
subdivide_edges(x, protect = NULL, all = FALSE, merge = TRUE)
x |
An object of class |
protect |
An integer vector of edge indices specifying which edges
should be protected from being subdivided. Defaults to |
all |
Should edges be subdivided at all their interior points? If set
to |
merge |
Should multiple subdivision points at the same location be
merged into a single node, and should subdivision points at the same
location as an existing node be merged into that node? Defaults to
|
The subdivision of x as object of class sfnetwork.
By default sfnetworks rounds coordinates to 12 decimal places to
determine spatial equality. You can influence this behavior by explicitly
setting the precision of the network using
st_set_precision.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.