sp_network_nodes: Create a 'sp_network_nodes-class()'

Description Usage Arguments Value See Also Examples

View source: R/class_sp-network-nodes.R

Description

Create a sp_network_nodes-class()

Usage

1
2
3
4
5
6
sp_network_nodes(
  network_id,
  node_neighborhood = NULL,
  node_data = NULL,
  node_key_column
)

Arguments

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

Value

An S4 class of type sp_network_nodes-class()

See Also

Other Constructors for spflow network classes: sp_multi_network, sp_network_pair, spflow_network_classes

Examples

1
2
3
4
sp_network_nodes("germany",
                 spdep::nb2mat(spdep::poly2nb(germany_grid)),
                 as.data.frame(germany_grid),
                 "ID_STATE")

spflow documentation built on Sept. 9, 2021, 5:06 p.m.