Learn R Programming

gms (version 0.31.2)

GAMScodeFilter: GAMScodeFilter

Description

Cleans GAMS code supplied from empty lines and comments.

Usage

GAMScodeFilter(x)

Value

The cleaned GAMS code

Arguments

x

A vector with lines of GAMS code (as you get by reading the code with readLines)

Author

Jan Philipp Dietrich

See Also

readDeclarations

Examples

Run this code

GAMScodeFilter(c("","*comment","a=12;","","b=13;"))

Run the code above in your browser using DataLab