separate_RV | R Documentation |
R
) and make (V
) matrices from make plus resource (R_plus_V
) matricesResource industries are industries that make a product without using any products.
Resource industries are identified by interrogating
the use (U
) and make (R_plus_V
) matrices.
Resource industries have all zeroes in their column of the use matrix (U
)
and at least one non-zero value in their row of the make (R_plus_V
) matrix.
separate_RV(.sutmats = NULL, U = "U", R_plus_V = "R_plus_V", R = "R", V = "V")
.sutmats |
a list or data frame containing use matrix(ces) and make matrix(ces) |
U |
a use ( |
R_plus_V |
an |
R |
name for resource ( |
V |
name for make ( |
A resource matrix (R
) has industries in rows and products in columns.
The elements of of R
indicate extraction of resources from the biosphere.
The industries of R
are the reserves of the extracted products.
This function uses the resource_industries
function to
identify the resource industries in the R_plus_V
matrix.
Thereafter, the function extracts the resource industries from the R_plus_V
matrix
to form the R
matrix.
Finally, the R
matrix is subtracted from the R_plus_V
matrix
and saved as the V
matrix.
If there are no resource industries in the R_plus_V
matrix,
a warning is emitted,
no R
matrix is created, and
no changes are made to the R_plus_V
matrix.
separate_RV
is the inverse of combine_RV
.
a list or data frame containing R
and V
matrices
library(dplyr)
library(tidyr)
UKEnergy2000mats %>%
spread(key = "matrix.name", value = "matrix") %>%
# Rename the V matrix, because it includes the R matrix.
rename(
R_plus_V = V
) %>%
separate_RV()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.