lev2bool function

Conversion of factor to 0/1 variable