if (FALSE) {
expandCmd("y1-y3 y5-y6")
# "y1 y2 y3 y5 y6"
expandCmd("BY [email protected];")
# "BY [email protected] [email protected] [email protected];"
expandCmd("z10-z12*2")
# "z10*2 z11*2 z12*2"
expandCmd("MODEL CONSTRAINT: a = b1-b2;")
# "MODEL CONSTRAINT: a = b1-b2;" (unchanged)
expandCmd("1 - 3", expand_numeric = TRUE)
# "1 2 3"
expandCmd("d = 1 - 3;", expand_numeric = TRUE)
# "d = 1 - 3;" (unchanged because of '=')
}
Run the code above in your browser using DataLab