sf_attr {sfnetworks} | R Documentation |
Query sf attributes from the active element of a sfnetwork
Description
Query sf attributes from the active element of a sfnetwork
Usage
sf_attr(x, name, active = NULL)
Arguments
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 |
Details
sf attributes include sf_column
(the name of the sf column)
and agr
(the attribute-geometry-relationships).
Value
The value of the attribute matched, or NULL
if no exact
match is found.
Examples
net = as_sfnetwork(roxel)
sf_attr(net, "agr", active = "edges")
sf_attr(net, "sf_column", active = "nodes")
[Package sfnetworks version 0.6.4 Index]