ids | R Documentation |
Extract all node or edge indices from a spatial network
node_ids(x, focused = TRUE)
edge_ids(x, focused = TRUE)
x |
An object of class |
focused |
Should only the indices of features that are in focus be
extracted? Defaults to |
The indices in these objects are always integers that correspond to rownumbers in respectively the nodes or edges table.
A vector of integers.
net = as_sfnetwork(roxel[1:10, ])
node_ids(net)
edge_ids(net)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.