waste_edges: Create waste energy edges for an edge map

View source: R/node_edge_list.R

waste_edgesR Documentation

Create waste energy edges for an edge map

Description

Waste edges are created from the W matrix.

Usage

waste_edges(
  U_mat,
  V_mat,
  from = "From",
  to = "To",
  value = "Value",
  product = "Product",
  waste = "Waste"
)

Arguments

U_mat

a use matrix.

V_mat

a make matrix.

from

the name of the edge list column containing source nodes. (Default is "From".)

to

the name of the edge list column containing destination nodes. (Default is "To".)

value

the name of the edge list column containing magnitudes of the flows. (Default is "Value".)

product

the name of the edge list column containing the product of the edge list flow. (Default is "Product".)

waste

the name of the waste product and the destination node for wastes. (Default is "Waste".)

Details

The waste argument supplies both the name of the waste flow (default is "Waste") and the name of the destination of the waste flows.

Value

waste energy edges computed from the Umat and Vmat matrices

Examples

library(dplyr)
library(matsbyname)
library(tidyr)
sutmats <- UKEnergy2000mats %>% spread(key = matrix.name, value = matrix)
edge_list(sutmats)$`Edge list`[[1]] %>% filter(Product == "Waste")

MatthewHeun/Recca documentation built on Feb. 9, 2024, 6:18 p.m.