combine_RV: Combine resource ('R') and make ('V') matrices into a make...

View source: R/utilities.R

combine_RVR Documentation

Combine resource (R) and make (V) matrices into a make plus resource (R_plus_V) matrix

Description

combine_RV is the inverse of separate_RV.

Usage

combine_RV(.sutmats = NULL, R = "R", V = "V", R_plus_V = "R_plus_V")

Arguments

.sutmats

a list or data frame containing use matrix(ces) and make matrix(ces)

R

an R matrix or name of a column in .sutmats that contains same. Default is "R".

V

a make (V) matrix or name of a column in .sutmats that contains same. Default is "V".

R_plus_V

name for R_plus_V matrix on output. Default is "R_plus_V".

Value

a list or data frame containing R_plus_V

Examples

library(dplyr)
library(tidyr)
UKEnergy2000mats %>%
  spread(key = "matrix.name", value = "matrix") %>%
  combine_RV()

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