Description Usage Arguments Value See Also Examples
View source: R/class_sp-network-nodes.R
Create a sp_network_nodes-class()
1 2 3 4 5 6 | sp_network_nodes(
network_id,
node_neighborhood = NULL,
node_data = NULL,
node_key_column
)
|
network_id |
A character that serves as an identifier for the network |
node_neighborhood |
A matrix that describes the neighborhood of the nodes |
node_data |
A data.frame that contains all information describing the nodes |
node_key_column |
A character indicating the column containing the identifiers for the nodes |
An S4 class of type sp_network_nodes-class()
Other Constructors for spflow network classes:
sp_multi_network
,
sp_network_pair
,
spflow_network_classes
1 2 3 4 | sp_network_nodes("germany",
spdep::nb2mat(spdep::poly2nb(germany_grid)),
as.data.frame(germany_grid),
"ID_STATE")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.