Apologies if this is a stupid question, I feel as if I could get an answer quickly if I just knew how to phrase it correctly!
In short: I have a large number of samples that come from a number of different sources. The specific source of the sample is not important, but knowing which samples come from the same source is.
So, what I have now is:
Sample source
S1 A
S2 B
S3 B
S4 A
S5 A
and what I need is..
S1 S2 S3 S4 S5
S1 1 0 0 1 1
S2 0 1 1 0 0
S3 0 1 1 0 0
S4 1 0 0 1 1
S5 1 0 0 1 1
Any help would be very appreciated...