Hi!
I have a database with unique id for reports related with companies information. I have a variable which contains the companies involved in the report. For example, for ID 1, I have in the column companies “Compay A”, for ID 2 I have this column “Company A; Company B, Company C”.
I would like to split the variable companies and generate as many rows as companies involved in unique reports. So, I would like to have for the ID 2 three different rows, one for each, keeping the rest of variables equal. In other words, I would like to have a Panel Data, the ID is the company an the j variable the report (could be the same for some companies).
thanks in advance.
I have a database with unique id for reports related with companies information. I have a variable which contains the companies involved in the report. For example, for ID 1, I have in the column companies “Compay A”, for ID 2 I have this column “Company A; Company B, Company C”.
I would like to split the variable companies and generate as many rows as companies involved in unique reports. So, I would like to have for the ID 2 three different rows, one for each, keeping the rest of variables equal. In other words, I would like to have a Panel Data, the ID is the company an the j variable the report (could be the same for some companies).
thanks in advance.
Comment