Please use R Question 1 Part 1: Use the undergraduate survey data from http://becomingvisual.com/rfundamentals/undergrad.csv (please note in some browsers, Essay

Please use R

Question 1

Part 1: Use the undergraduate survey data from http://becomingvisual.com/rfundamentals/undergrad.csv (please note in some browsers, you may need to copy/paste this hyperlink into address bar to access document) to create ordered factor variables for the excel, statistics and programming variables.

Part 2: In a R Markdown scriipt, draw histograms for your new ordered factor variables.

Question 2

Part 1: Import the following AirBnb data set (http://becomingvisual.com/rfundamentals/airbnb.csv) (please note in some browsers, you may need to copy/paste this hyperlink into address bar to access document). Create a set of functions that compute the following specific metrics by neighborhood:

average_number_of_reviews
average_price
Part 2: Use the functions created in part 1 to compute these metrics by room type and neighborhood.

Complete this as a R Markdown, document what you are doing using comments, and upload.