Create a sp_network_nodes-class()
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
sp_network_nodes("germany", spdep::nb2mat(spdep::poly2nb(germany_grid)), as.data.frame(germany_grid), "ID_STATE")#> Spatial network nodes with id: germany #> -------------------------------------------------- #> Number of nodes: 16 #> Average number of links per node: 5.125 #> Density of the neighborhood matrix: 32.03% (non-zero connections) #> #> Data on nodes: #> ID_STATE X geometry #> SH SH 10 POLYGON ((0.5 4.5, 0.5 5.5,... #> HH HH 15 POLYGON ((0.5 3.5, 0.5 4.5,... #> MV MV 20 POLYGON ((1.5 3.5, 1.5 4.5,... #> NW NW 7 POLYGON ((-0.5 2.5, -0.5 3.... #> HB HB 20 POLYGON ((0.5 2.5, 0.5 3.5,... #> BB BB 25 POLYGON ((1.5 2.5, 1.5 3.5,... #> BE BE 15 POLYGON ((2.5 2.5, 2.5 3.5,... #> RP RP 10 POLYGON ((-0.5 1.5, -0.5 2.... #> NI NI 30 POLYGON ((0.5 1.5, 0.5 2.5,... #> ST ST 20 POLYGON ((1.5 1.5, 1.5 2.5,... #> SN SN 15 POLYGON ((2.5 1.5, 2.5 2.5,... #> SL SL 10 POLYGON ((-0.5 0.5, -0.5 1.... #> HE HE 15 POLYGON ((0.5 0.5, 0.5 1.5,... #> TH TH 10 POLYGON ((1.5 0.5, 1.5 1.5,... #> BW BW 7 POLYGON ((0.5 -0.5, 0.5 0.5... #> BY BY 7 POLYGON ((1.5 -0.5, 1.5 0.5... #>