ec_undummy_lowmediumhigh function

Convert dummy-coded variables to low/medium/high factor