View source: R/node_edge_list.R
waste_edges | R Documentation |
Waste edges are created from the W
matrix.
waste_edges(
U_mat,
V_mat,
from = "From",
to = "To",
value = "Value",
product = "Product",
waste = "Waste"
)
U_mat |
a use matrix. |
V_mat |
a make matrix. |
from |
the name of the edge list column containing source nodes. (Default is " |
to |
the name of the edge list column containing destination nodes. (Default is " |
value |
the name of the edge list column containing magnitudes of the flows. (Default is " |
product |
the name of the edge list column containing the product of the edge list flow. (Default is " |
waste |
the name of the waste product and the destination node for wastes. (Default is " |
The waste
argument supplies both the name of the waste flow (default is "Waste
")
and the name of the destination of the waste flows.
waste energy edges computed from the Umat
and Vmat
matrices
library(dplyr)
library(matsbyname)
library(tidyr)
sutmats <- UKEnergy2000mats %>% spread(key = matrix.name, value = matrix)
edge_list(sutmats)$`Edge list`[[1]] %>% filter(Product == "Waste")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.