SOCR8006 Online Research Method

Just two parts
Please help me finish two questions in part 3.
This requirment needs you should familiar with R and voson. Please give me all R codes and context at last.
Both of these problems appeared in the lab before. You can refer to or modify the previous code (most likely you will need to modify part of the code). About stopwords, you should get rid of some bad words.
Text is important.