flows_unit_homogeneous | R Documentation |
Returns TRUE
if each industry's flows (all inputs and outputs) are unit-homogeneous.
flows_unit_homogeneous(
.sutmats = NULL,
U = "U",
V = "V",
S_units = "S_units",
keep_details = FALSE,
flows_unit_homogeneous = ".flows_unit_homogeneous"
)
.sutmats |
a data frame of supply-use table matrices with matrices arranged in columns. |
U |
a use ( |
V |
a make ( |
S_units |
an |
keep_details |
if |
flows_unit_homogeneous |
the name of the output column
that tells whether each industry's outputs are unit-homogeneous.
Default is " |
The V_bar
matrix is queried for the number of non-zero entries in each row.
If the number of non-zero entries in each row is exactly 1,
industry outputs are unit-homogeneous.
Note that V_bar = matrixproduct_byname(V, S_units)
.
.sutdata
with additional column "flows_unit_homogeneous
" containing
TRUE
if each industry's flows are unit-homogeneous,
FALSE
if each industry's flows are unit-heterogeneous.
library(tidyr)
UKEnergy2000mats %>%
spread(key = "matrix.name", value = "matrix") %>%
flows_unit_homogeneous()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.