# NOT RUN {
# Operator precedence and parenthesis
functionToPMML("1 + 3/5 - (4 * 2)")
# Nested arbitrary functions
functionToPMML("foo(bar(x)) - bar(foo(y-z))")
# If-else expression
functionToPMML("if (x==3) { 3 } else { 0 }")
# If-else with boolean output
functionToPMML("if (x==3) { TRUE } else { FALSE }")
# Function with string argument types
functionToPMML("colors('red','green','blue')")
# Sign in front of expression
functionToPMML("-(x/y)")
# }
Run the code above in your browser using DataLab