Have a data-set that looks like this, but with 250000 rows:
a
a
b
c
c
c
c
etc.
I would like to make a matrix with zero and one values for each row, whether they appear in the columns, which are a,b,c etc.
Have attached an example to make things clearer: https://drive.google.com/file/d/0B3938jUqpIbnRUoyS092aFNSZ0k/view?usp=sharing
Any help is greatly appreciated!
Thanks!