What I want to do is convert data from this format:
ID Date CODE
5567 2012-09-02 F17
5567 2012-10-15 F17
5567 2012-11-11 Z49
1245 2010-09-02 Z49
6623 2012-10-15 T65
6623 2012-11-11 Z49
To this format:
ID F17 Z49 T65
5567 1 1 0
1245 0 1 0
6623 0 1 1
Notice that I do not care about "Date" nor do I care about how many times a specific code is associated with an ID. I only care if a certain ID has a code associated with it 1 or more times. i.e. 1 = yes and 0 = no.