resource_industries | R Documentation |
Identifies resource industries.
resource_industries(
.sutdata = NULL,
R = "R",
U = "U",
V = "V",
r_industries = "r_industries"
)
.sutdata |
a list or data frame containing use matrix(ces) and make matrix(ces) |
R |
resource ( |
U |
use ( |
V |
make ( |
r_industries |
name for the resource industry vector on output. Default is "r_industries". |
Resource industries are industries that make a product without using any products.
If R
is given, its industries are automatically included in the output.
Additional resource industries are identified by interrogating
the resources (R
), use (U
) and make (V
) matrices.
Resource industries are, by definition, present in the R
matrix,
or they have all zeroes in their column of the use matrix (U
)
and at least one non-zero value in their row of the make (V
) matrix.
Argument and value descriptions are written assuming that .sutdata
is a data frame.
Alternatively, .sutdata
can be unspecified, and U
and V
can be matrices.
In that case, the return value is a list with a single item (r_industries
)
which contains a vector of names of resource industries for the U
and V
matrices.
a list or data frame with .sutdata
with an additional column (named with the value of the p_industries
argument)
containing the resource industries for each row
library(tidyr)
UKEnergy2000mats %>%
spread(key = matrix.name, value = matrix) %>%
resource_industries()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.