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 |
The value of the queried attribute.
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.