I'm new to stackoverflow and to datascience. Right now i've got a project where i want to perform a association rule analysis. I've got some troubles with making the matrix for the analysis. My data is looking like this:
column 1: receiptnumber, column 2: brand, column 3: bought or not.
I would like to get a matrix whereby the receiptnumbers are the rows, and the brands are the columns. I've to say that not every receiptnumber has all the brands covert.