View source: R/class_spflow_network_pair.R
spflow_network_pair | R Documentation |
spflow_network_pair-class()
Create a spflow_network_pair-class()
spflow_network_pair(
id_orig_net,
id_dest_net,
id_net_pair = paste0(id_orig_net, "_", id_dest_net),
pair_data = NULL,
orig_key_column,
dest_key_column
)
id_orig_net |
A character that serves as identifier for the origin network |
id_dest_net |
A character that serves as identifier for the destination network |
id_net_pair |
A character that as identifier for network_pair |
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 |
A spflow_network_pair-class()
pair_frame <- data.frame(
ORIG_ID_STATE = rep(germany_grid$ID_STATE, times = 16),
DEST_ID_STATE = rep(germany_grid$ID_STATE, each = 16))
spflow_network_pair("ge","ge","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.