Here are my answers to assignment 2. The problem set could be found here.
For exercise 1:
Function Script.Ris a code script that creates a data frame transformation function as required in the problem set.Function_Showcase.Rmdis an RMarkdown file that presents the function code chunk in details.Function_Showcase.htmlis a knitted html file that presents the description and sample output of this function.
For exercise 2 and 3:
Assignment2.html shows my final answers to the rest questions, including a mini data analysis project about the world COVID-19 restriction policy levels and income support across different regions, 3 text modification function exercises and another mini research on a simple text analysis of Conan Doyle's novels about Sherlock Holmes.