At minimum, you should have an appendix for your data cleaning. Submit an updated version of your data cleaning description from phase II that describes all data cleaning steps performed on your raw data to turn it into the analysis-read dataset submitted with your final project. When rendered, it should output the dataset you submit as part of your project (e.g. written as a .csv file).
First, we decided which variables were of interest to us, and narrowed down the dataframe to only those variables with the select() function. These variables included name, year, rank, company.sector, location.country.code, location.region, wealth.worth.in.billions, wealth.how.industry, and wealth.how.inherited.
We filtered for billionaires in only in year 2014. This dataframe includes a list of billionaires in the years 1996, 2001, and 2014. We chose to focus on the most recent list, and thus filtered for the list of billionaires in 2014 using the filter() function. We also filtered for billionaires only in North America and Europe, because our main focus in this research is comparing between billionaires in those two regions.
We then adjusted the categories for wealth.how.inherited – the source of a billionaire’s wealth, creating three main categories: “not inherited”, “inherited from family”, “inherited from spouse/widow”. These are the three most distinct categories for wealth inheritance, since we don’t see 3rd generation inheritance different from 5th generation inheritance, grouping any form of generational inheritance into “inherited generation”.
We also cleaned up the wealth.how.industry variable because upon creating data visualizations, an industry category of “0” was apparent, which is not descriptive or indicative of any sort of industry a billionaire might work in. Instead of removing any billionaire with this value, we changed its value under wealth.how.industry to “Other”, another existing category.