The simple answer is to convert it to a Tukey variable with 0 for no and 1 for yes. You can keep the measure as nominal and create values to interpret the numbers as no and yes.
Peter is absolutely right about the coding of responses into binary numbers. Once you have coded your yes=1 and no=1, Please go through the following video to have a clear idea of how it should be done.
https://www.youtube.com/watch?v=OvQShzJ7Sns
This is one part fo the video, please go through the other three parts too. I am sure you will be able to get it done.