restore_equation: Restore equation notation for warning messages

View source: R/07_02_run_gauss_seidel.R

restore_equationR Documentation

Restore equation notation for warning messages

Description

This function converts an internally processed equation expression (e.g., ‘m[.i, ’Var']') into a more readable format (e.g., 'Var'). The function handles lagged variables, transforming expressions such as ‘m[.i - 1, ’Var']' into 'Var[-1]'. It is intended for use in warning messages.

Usage

restore_equation(eq_line)

Arguments

eq_line

A character string representing an equation with internal indexing.

Value

A character string where the internal indexing notation has been restored to a more user-friendly form.


gamrot/godley documentation built on April 12, 2025, 1:50 p.m.