Question: ) Read the following data in R and create a categorical variable called hostclass variable using the following condition: If you use your desktop version

) Read the following data in R and create a categorical variable called hostclass variable using
the following condition:
If you use your desktop version of R:
Airbnb <- read.csv(https://bigblue.depaul.edu/jlee141/econdata/eco520/airbnb2019.csv)
If you use bigblue server, the location of file is:
airbnb <- read.csv("/var/www/html/jlee141/econdata/eco520/airbnb2019.csv")
Use appropriate R code to generate the following hostclass variable:
hostclass is defined as:
0< host_total_listings <3 : hostclass =1
3<= host_total_listings <20 : hostclass =2
host_total_listings >=20 : hostclass =3

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!