The function matches to parts of the matrix equation, using the named
formats with row names and solves the matrix equation.
This function is used in wrapper functions, such as
to solve particular problems, but it can be used directly, too.
The function only performs the lhs
pairing industries and checking for exceptions.
equation_solve(LHS = NULL, Im = NULL)
A left-hand side vector with a key column containing the industry or product names for matching, for example the employment coefficients.
A Leontieff-inverse with a key column containing the industry or product names for matching.
Im = data.frame ( a = c("row1", "row2"), b = c(1,1), c = c(2,0)) LHS = data.frame ( a = "lhs", b = 1, c = 0.5) equation_solve (Im = Im, LHS = LHS)#> b c #> [1,] 1.5 2