| data | R Documentation |
Extract the node or edge data from a spatial network
node_data(x, focused = TRUE)
edge_data(x, focused = TRUE, require_sf = FALSE)
x |
An object of class |
focused |
Should only features that are in focus be extracted? Defaults
to |
require_sf |
Is an |
For the nodes, always an object of class sf. For
the edges, an object of class sf if the edges are
spatially explicit, and an object of class tibble
if the edges are spatially implicity and require_sf = FALSE.
net = as_sfnetwork(roxel[1:10, ])
node_data(net)
edge_data(net)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.