I have a political donation dataset that holds industry categories in alphanumeric codes. A separate text document has a listing for how these alphanumeric codes translate into industry name, sector name, and category-of-industry name.
For instance, "A1200", is the Crop Production Industry, in the Agribusiness sector, in the Sugar cane industry category. I'd like to know how to pair the alphanumeric codes with their respective sector, industry, and category values in separate columns.
Right now, the code values dataset is in
Catcode Catname Catorder Industry Sector
A1200 Sugar cane A01 Crop Production Agribusiness
and this industry donation dataset:
Business name Amount donated Year Category
Sarah Farms 1000 2010 A1200
The category dataset is about 444 rows and the donation set is about 1M rows. How do I feel out the donation dataset so it looks like this. Category would be the common name
Catcode Catname Catorder Industry Sector Business name Amount donated Year Category
A1200 Sugar cane A01 Crop Production Agribusiness Sarah Farms 1000 2010 A1200
I'm a little new to these forums, so if there was a better way to ask this question, please let me know. Thank you for the help!