Learn R Programming

iotables (version 0.4.5)

equation_solve: Solve A Basic (Matrix) Equation

Description

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 multiplier_create. to solve particular problems, but it can be used directly, too. The function only performs the lhs pairing industries and checking for exceptions.

Usage

equation_solve(LHS = NULL, Im = NULL)

Arguments

LHS

A left-hand side vector with a key column containing the industry or product names for matching, for example the employment coefficients.

Im

A Leontieff-inverse with a key column containing the industry or product names for matching.

Value

A data.frame with auxiliary metadata to conform the symmetric input-output tables.

Examples

Run this code
# NOT RUN {
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)
# }

Run the code above in your browser using DataLab