sf_attr | R Documentation |
Query sf attributes from the active element of a sfnetwork
sf_attr(x, name, active = NULL)
x |
An object of class |
name |
Name of the attribute to query. Either |
active |
Which network element (i.e. nodes or edges) to activate before
extracting. If |
sf attributes include sf_column
(the name of the sf column)
and agr
(the attribute-geometry-relationships).
The value of the attribute matched, or NULL
if no exact
match is found.
net = as_sfnetwork(roxel)
sf_attr(net, "agr", active = "edges")
sf_attr(net, "sf_column", active = "nodes")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.