Learn R Programming

godley (version 0.2.2)

restore_equation: 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)

Value

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

Arguments

eq_line

A character string representing an equation with internal indexing.