please use the following data set and r studio to complete the question

the question and data set is attached. please use the R studio and the data set to complete the question. thank you so much!