In a function with three arguments (i.e. state, outcome and nums) and the data frame is called df. Here is the snippet with the issue:
else if (num == &qu