At the moment I have a data set of a voting data where each person voted on a number of policies either yes or no or they were absent at the time of the vote of that particular policy.
Overall I have 23 policies but I have no idea how to convert the data into binary. The data set is set up in the way that obviously "n" = no , "y" = yes and "a" = absent
If anyone could lend me a hand here as to how to convert the data in R to a binary Matrix I would appreciate it !