Match a left-hand side (LHS) vector to a Leontief inverse by column names and compute the matrix product \(\text{LHS} \times \text{Im}\).
Details
This helper is used by higher-level wrappers such as
multiplier_create(). It assumes both inputs have a first key column,
followed by numeric columns whose names define the alignment. The function
multiplies the numeric row of LHS by the numeric block of Im after a
basic conformity check.
Examples
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
