Description Usage Arguments Value See Also Examples
View source: R/class_sp-network-pair.R
Create an S4 object that contains information on origin-destination pairs
1 2 3 4 5 6 7 | sp_network_pair(
orig_net_id,
dest_net_id,
pair_data = NULL,
orig_key_column,
dest_key_column
)
|
orig_net_id |
A character that serves as identifier for the origin network |
dest_net_id |
A character that serves as identifier for the destination network |
pair_data |
A data.frame containing information on the origin-destination pairs |
orig_key_column |
A character indicating the name of the column containing the identifiers of the origins |
dest_key_column |
A character indicating the name of the column containing the identifiers of the destinations |
An S4 class of type sp_network_pair-class()
Other Constructors for spflow network classes:
sp_multi_network
,
sp_network_nodes
,
spflow_network_classes
1 2 3 4 | pair_frame <- data.frame(
ORIG_ID_STATE = rep(germany_grid$ID_STATE, times = 16),
DEST_ID_STATE = rep(germany_grid$ID_STATE, each = 16))
sp_network_pair("ge","ge",pair_frame,"ORIG_ID_STATE","DEST_ID_STATE")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.