powered by
sp_network_nodes-class()
Create a sp_network_nodes-class()
sp_network_nodes( network_id, node_neighborhood = NULL, node_data = NULL, node_key_column )
A character that serves as an identifier for the network
A matrix that describes the neighborhood of the nodes
A data.frame that contains all information describing the nodes
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
sp_multi_network
sp_network_pair
spflow_network_classes
# NOT RUN { sp_network_nodes("germany", spdep::nb2mat(spdep::poly2nb(germany_grid)), as.data.frame(germany_grid), "ID_STATE") # }
Run the code above in your browser using DataLab