ec_undummy_yesno function

Convert dummy-coded variables to yes/no factor