0

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!

MrFlick
  • 195,160
  • 17
  • 277
  • 295

0 Answers0