attachYesNo function

Attach levels no and yes to a 0-1 vector.