Airbnb is an excellent example of shared economy where such companies help the microentrepreneurs (hosts) to connect with clients (tourists etc.) to earn extra income on a wide scale. The business has been flourishing well with gradual increase in penetration across the 5 regions in Singapore. The intent of this report is to help guests deep dive into the street level details around the AirBnb properties available across Singapore.
The dataset has been downloaded from AirBnb website and poses a few issues as listed below * The dataset contains a lot of redundant columns which are not of much help while preparing the report * The dataset also has a lot of missing values for many columns which renders those columns redundant for the analysis
Design Challenges * The dataset contains longitude and latitude data which needs to be effectively utilized to create accurate location points on a map graph * For the benefit of the customer to easily find properties spread across entire Singapore, the map graph has to be interactive and at the same time not very cluttered
Redundant columns - Basis the business understanding and looking at some of the stats, the dataset has been reduced to just 27 columns
Also, columns with majority missing values have been removed while the rows with missing values for important columns have been eliminated while preparing the charts
Interactive charts will be prepared using R libraries to provide interaction as well as clarity in seeking information by the customer
Below is my thought process around how i would like to show case data in the form of infographs
##
## Attaching package: 'dplyr'
## The following objects are masked from 'package:stats':
##
## filter, lag
## The following objects are masked from 'package:base':
##
## intersect, setdiff, setequal, union
## -- Attaching packages ------------------------------------------------- tidyverse 1.3.0 --
## v tibble 3.0.3 v stringr 1.4.0
## v readr 1.3.1 v forcats 0.5.0
## v purrr 0.3.4
## -- Conflicts ---------------------------------------------------- tidyverse_conflicts() --
## x dplyr::filter() masks stats::filter()
## x dplyr::lag() masks stats::lag()
## corrplot 0.84 loaded
## Loading required package: Matrix
##
## Attaching package: 'Matrix'
## The following objects are masked from 'package:tidyr':
##
## expand, pack, unpack
## Loaded glmnet 4.0-2
##
## Attaching package: 'raster'
## The following object is masked from 'package:dplyr':
##
## select
## The following object is masked from 'package:tidyr':
##
## extract
## rgdal: version: 1.5-12, (SVN revision 1018)
## Geospatial Data Abstraction Library extensions to R successfully loaded
## Loaded GDAL runtime: GDAL 3.0.4, released 2020/01/28
## Path to GDAL shared files: C:/Users/erami/Documents/R/win-library/4.0/rgdal/gdal
## GDAL binary built with GEOS: TRUE
## Loaded PROJ runtime: Rel. 6.3.1, February 10th, 2020, [PJ_VERSION: 631]
## Path to PROJ shared files: C:/Users/erami/Documents/R/win-library/4.0/rgdal/proj
## Linking to sp version:1.4-2
## To mute warnings of possible GDAL/OSR exportToProj4() degradation,
## use options("rgdal_show_exportToProj4_warnings"="none") before loading rgdal.
##
## Attaching package: 'maps'
## The following object is masked from 'package:purrr':
##
## map
## Checking rgeos availability: FALSE
## Note: when rgeos is not available, polygon geometry computations in maptools depend on gpclib,
## which has a restricted licence. It is disabled by default;
## to enable gpclib, type gpclibPermit()
## Google's Terms of Service: https://cloud.google.com/maps-platform/terms/.
## Please cite ggmap if you use it! See citation("ggmap") for details.
## To enable
## caching of data, set `options(tigris_use_cache = TRUE)` in your R script or .Rprofile.
## ------------------------------------------------------------------------------
## You have loaded plyr after dplyr - this is likely to cause problems.
## If you need functions from both plyr and dplyr, please load plyr first, then dplyr:
## library(plyr); library(dplyr)
## ------------------------------------------------------------------------------
##
## Attaching package: 'plyr'
## The following object is masked from 'package:maps':
##
## ozone
## The following object is masked from 'package:purrr':
##
## compact
## The following objects are masked from 'package:dplyr':
##
## arrange, count, desc, failwith, id, mutate, rename, summarise,
## summarize
##
## Attaching package: 'gridExtra'
## The following object is masked from 'package:dplyr':
##
## combine
##
## Attaching package: 'data.table'
## The following object is masked from 'package:raster':
##
## shift
## The following object is masked from 'package:purrr':
##
## transpose
## The following objects are masked from 'package:dplyr':
##
## between, first, last
listings<-read.csv("listings.csv")
head(listings)
## id listing_url scrape_id last_scraped
## 1 49091 https://www.airbnb.com/rooms/49091 2.020053e+13 43978
## 2 50646 https://www.airbnb.com/rooms/50646 2.020053e+13 43978
## 3 56334 https://www.airbnb.com/rooms/56334 2.020053e+13 43978
## 4 71609 https://www.airbnb.com/rooms/71609 2.020053e+13 43978
## 5 71896 https://www.airbnb.com/rooms/71896 2.020053e+13 43978
## 6 71903 https://www.airbnb.com/rooms/71903 2.020053e+13 43978
## name
## 1 COZICOMFORT LONG TERM STAY ROOM 2
## 2 Pleasant Room along Bukit Timah
## 3 COZICOMFORT
## 4 Ensuite Room (Room 1 & 2) near EXPO
## 5 B&B Room 1 near Airport & EXPO
## 6 Room 2-near Airport & EXPO
## summary
## 1
## 2 Fully furnished bedroom with a nice view on the 10th floor of a newly built private condominium on one of the most preferred residential estates in Singapore.
## 3
## 4 For 3 (Website hidden by Airbnb) room 1&2 and room 4
## 5
## 6 Like your own home, 24hrs access.
## space
## 1 This is Room No. 2.(available after Jan 15 2014) USD750 per month. You may want to take a look at room number 1 as well. Room NO 1 is available immediately at USD700 per month Its at the far right corner of your screen below. Please note that currency is in USD unless stated as SGD. only LONG TERM STAY (6 months minimum) Place is available only to adults. Good location. 10 minutes walk to train station. 10 minutes walk to Bus stops. 7 minutes walk to 24 hour food center. 7 minutes walk to two 24 hour supermarkets. 10 minutes walk to 24/7 McDonald's. 30 minutes train ride to Orchard road. On Friday's/Saturday's, you can take the Night Rider bus from Orchard or from Clarke Quay direct back home and save taxi fare! Room is clean,cozy and comfortable. One queensize bed. There is aircondition and fan. Washing machine is also available with no extra charges. However pls purchase own detergent. Free WiFi too!! We have cable in the living room and a large dining table as well. Very safe
## 2 Good Condition room, bright & windy. Comes with TV, Aircon, Bed, wardrobe. Can accommodate couples or 2 ladies or students for long-term rental only.
## 3 This is Room no. 1. USD700 per month On the far right corner on your screen below you might want to have a look at Room no. 2.USD750 per month. Please note that currency is in USD. Only LONG TERM STAY (6 months minimum.) Monthly rent is USD700. Room is perfect for one Place is available only to adults. chest of drawers computer/writing table aircon/fan television/cable in living room 24 hour coffee shop/ supermarket nearby 24 hour fast food,nearby 10mins walk to train station Half hour train ride to city/town/orchard road 5 mins walk to bus stop Nearby libraries Near shopping malls ( one train stn away) or walk Free use of washing machine, however pls purchase own detergent Free wiFi Hot/Cold Shower (bathroom not attached to bedroom)
## 4 Landed Homestay Room for Rental. Between Simei and Expo Mrt. 2 bustop distance or 10-15min walking distant to Simei MRT.Bus n(phone number hidden).Clean and well maintain aircon room. We also provide Short and Long term room rental .Free 24 hrs Wireless Internet Access Available. Rates are inclusive of utilities & wifi internet. Both room can accomodate up to 6 max. Complimentary: Use of washer, iron with ironing board, hairdryer, towels, toiletries & change of bedding for extended stay. For use of Dryer additional charge of $10 will be imposed. Light cooking is allowed.Use of Gas subject to cooking not for use of drying clothes or misuse will be charged at $10 per min Neighbourhood: A residential area, with schools, shopping malls, sports facilities such as gym, basketball & badminton courts at Changi Simei CC. Food Courts/Coffee Shop At least 5 of them in the vicinity of walking distance between 5 to 15 minutes. One Vegetarian restaurant at Metta School. Two of the coffeeshop open fo
## 5 Vocational Stay Deluxe Bedroom in Singapore.(Near Airport) Located Between - Simei and Expo Mrt - 2 bustop distance or (Phone number hidden by Airbnb) min walking distant to Simei MRT. - Bus no (Phone number hidden by Airbnb) Services provided - Daily Cleaning of Room - Free Usage of Ironing and Washing Machine (Detergent is not provided) - Laundry (Additional Charges) - Dryer (Additional Charges) - Change of towels, toiletries & change of bedding for extended stay. Neighbourhood Consists of -A residential area -Neighbourhood Schools -East Point Shopping Mall -Changi City Point (Near Expo) -Tampines Business & Shopping District (Tampines Mall, Tampines 1 & Century Square) -Tampines Block 201, Housing Estate (Singaporean Cultural Spot) -Changi Simei Community Centre ~ Gym (S$3.50 per entry) ~ Badminton Court (S$3 per hour) -Neighbourhood Basketball Court -Jogging Track -At least 5 Food Courts/Coffee Shop in vicinity of 5-15 mins walk ~One Vegetarian rest
## 6 Vocational Stay Deluxe Bedroom in Singapore.(Near Airport ,EXPO,SIA training centre) Located Between - Simei and Expo Mrt (changi business district park) - 2 bustop distance or 10-15min walking distant to Simei MRT. - Bus (phone number hidden) Services provided - Daily Cleaning of Room - Free Usage of Ironing and Washing Machine (Detergent is not provided) - Laundry (Additional Charges) - Dryer (Additional Charges) - Change of towels, toiletries & change of bedding for extended stay. Neighbourhood Consists of -A residential area -Neighbourhood Schools -East Point Shopping Mall -Tampines Business & Shopping District (Tampines Mall, Tampines 1 & Century Square) -Tampines Block 201, Housing Estate (Singaporean Cultural Spot) -Changi Simei Community Centre ~ Gym (S$3.50 per entry) ~ Badminton Court (S$3 per hour) -Neighbourhood Basketball Court -Jogging Track -At least 5 Food Courts/Coffee Shop in vicinity of 5-15 mins walk ~One Vegetarian restaurant at Metta
## description
## 1 This is Room No. 2.(available after Jan 15 2014) USD750 per month. You may want to take a look at room number 1 as well. Room NO 1 is available immediately at USD700 per month Its at the far right corner of your screen below. Please note that currency is in USD unless stated as SGD. only LONG TERM STAY (6 months minimum) Place is available only to adults. Good location. 10 minutes walk to train station. 10 minutes walk to Bus stops. 7 minutes walk to 24 hour food center. 7 minutes walk to two 24 hour supermarkets. 10 minutes walk to 24/7 McDonald's. 30 minutes train ride to Orchard road. On Friday's/Saturday's, you can take the Night Rider bus from Orchard or from Clarke Quay direct back home and save taxi fare! Room is clean,cozy and comfortable. One queensize bed. There is aircondition and fan. Washing machine is also available with no extra charges. However pls purchase own detergent. Free WiFi too!! We have cable in the living room and a large dining table as well. Very safe
## 2 Fully furnished bedroom with a nice view on the 10th floor of a newly built private condominium on one of the most preferred residential estates in Singapore. Good Condition room, bright & windy. Comes with TV, Aircon, Bed, wardrobe. Can accommodate couples or 2 ladies or students for long-term rental only. Kitchen, washing facilities, gym, swimming pool, etc. We love to host people & have the opportunity to learn & enjoy the various culture & languages around the world. We hope to part as friends after your stay! The serenity & quiet surrounding makes it an ideal place to come back to after work / play. Lovely birds chirping for a nice morning wake up (if you leave the windows open) are a pleasure to wake up to. Located on the main road but at just a short walk in makes it an ideal neighbourhood with excellent transport facilities & food, supermarket, etc, all as required for a convenient living. Less than 400m from the apartment is the main road which connects to the city center &
## 3 This is Room no. 1. USD700 per month On the far right corner on your screen below you might want to have a look at Room no. 2.USD750 per month. Please note that currency is in USD. Only LONG TERM STAY (6 months minimum.) Monthly rent is USD700. Room is perfect for one Place is available only to adults. chest of drawers computer/writing table aircon/fan television/cable in living room 24 hour coffee shop/ supermarket nearby 24 hour fast food,nearby 10mins walk to train station Half hour train ride to city/town/orchard road 5 mins walk to bus stop Nearby libraries Near shopping malls ( one train stn away) or walk Free use of washing machine, however pls purchase own detergent Free wiFi Hot/Cold Shower (bathroom not attached to bedroom)
## 4 For 3 (Website hidden by Airbnb) room 1&2 and room 4 Landed Homestay Room for Rental. Between Simei and Expo Mrt. 2 bustop distance or 10-15min walking distant to Simei MRT.Bus n(phone number hidden).Clean and well maintain aircon room. We also provide Short and Long term room rental .Free 24 hrs Wireless Internet Access Available. Rates are inclusive of utilities & wifi internet. Both room can accomodate up to 6 max. Complimentary: Use of washer, iron with ironing board, hairdryer, towels, toiletries & change of bedding for extended stay. For use of Dryer additional charge of $10 will be imposed. Light cooking is allowed.Use of Gas subject to cooking not for use of drying clothes or misuse will be charged at $10 per min Neighbourhood: A residential area, with schools, shopping malls, sports facilities such as gym, basketball & badminton courts at Changi Simei CC. Food Courts/Coffee Shop At least 5 of them in the vicinity of walking distance between 5 to 15 minutes. One Vegetarian rest
## 5 Vocational Stay Deluxe Bedroom in Singapore.(Near Airport) Located Between - Simei and Expo Mrt - 2 bustop distance or (Phone number hidden by Airbnb) min walking distant to Simei MRT. - Bus no (Phone number hidden by Airbnb) Services provided - Daily Cleaning of Room - Free Usage of Ironing and Washing Machine (Detergent is not provided) - Laundry (Additional Charges) - Dryer (Additional Charges) - Change of towels, toiletries & change of bedding for extended stay. Neighbourhood Consists of -A residential area -Neighbourhood Schools -East Point Shopping Mall -Changi City Point (Near Expo) -Tampines Business & Shopping District (Tampines Mall, Tampines 1 & Century Square) -Tampines Block 201, Housing Estate (Singaporean Cultural Spot) -Changi Simei Community Centre ~ Gym (S$3.50 per entry) ~ Badminton Court (S$3 per hour) -Neighbourhood Basketball Court -Jogging Track -At least 5 Food Courts/Coffee Shop in vicinity of 5-15 mins walk ~One Vegetarian rest
## 6 Like your own home, 24hrs access. Vocational Stay Deluxe Bedroom in Singapore.(Near Airport ,EXPO,SIA training centre) Located Between - Simei and Expo Mrt (changi business district park) - 2 bustop distance or 10-15min walking distant to Simei MRT. - Bus (phone number hidden) Services provided - Daily Cleaning of Room - Free Usage of Ironing and Washing Machine (Detergent is not provided) - Laundry (Additional Charges) - Dryer (Additional Charges) - Change of towels, toiletries & change of bedding for extended stay. Neighbourhood Consists of -A residential area -Neighbourhood Schools -East Point Shopping Mall -Tampines Business & Shopping District (Tampines Mall, Tampines 1 & Century Square) -Tampines Block 201, Housing Estate (Singaporean Cultural Spot) -Changi Simei Community Centre ~ Gym (S$3.50 per entry) ~ Badminton Court (S$3 per hour) -Neighbourhood Basketball Court -Jogging Track -At least 5 Food Courts/Coffee Shop in vicinity of 5-15 mins walk ~
## experiences_offered
## 1 none
## 2 none
## 3 none
## 4 none
## 5 none
## 6 none
## neighborhood_overview
## 1
## 2 The serenity & quiet surrounding makes it an ideal place to come back to after work / play. Lovely birds chirping for a nice morning wake up (if you leave the windows open) are a pleasure to wake up to. Located on the main road but at just a short walk in makes it an ideal neighbourhood with excellent transport facilities & food, supermarket, etc, all as required for a convenient living.
## 3
## 4
## 5
## 6 Quiet and view of the playground with exercise tracks with access to neighbourhood Simwi Estate.
## notes
## 1
## 2 Accommodation has a queen size bed. Suitable for Single, couples. The room cannot accommodate more than 2 adults.
## 3
## 4 Incase there is some changes in the rooms allocated ,alternate room will be replaced.
## 5 Incase there is some changes in the rooms allocated ,alternate room will be replaced
## 6 Incase there is some changes in the rooms allocated ,alternate room will be replaced Please tidy your bed as there is no cleaning until check out. Please throw your rubbish outside the green rubbish bin.
## transit
## 1
## 2 Less than 400m from the apartment is the main road which connects to the city center & other parts of Singapore via a convenient bus ride. Short bus ride connects to many train stations & a 700m walk or cycle will bring you to King Albert Park train station
## 3
## 4
## 5
## 6 Walking distant to bus stop Can accesss from upper changi road.Bus available 2,5,9,24.From simei road available bus 9,12,38.Nearest mrt simei within walking distant or by bus to tanah merah mrt.Our transport is base on distant travel on bus & mrt.Changing bus along the way cost u a few cents don't have to walk.Taxi to expo for 4pax cost including booking cost less than $10.
## access
## 1
## 2 Kitchen, washing facilities, gym, swimming pool, etc.
## 3
## 4
## 5
## 6 Can use the kitchen and washing area with access to washing machine and ironing.
## interaction
## 1
## 2 We love to host people & have the opportunity to learn & enjoy the various culture & languages around the world. We hope to part as friends after your stay!
## 3
## 4
## 5
## 6 Will help book taxi and free advice.Pls remember to take the card for the address on the way back
## house_rules
## 1 No smoking indoors. Please turn off lights/fans/aircon when not in room. Thanks. Please no additional guests/visitors allowed in apartment. Kindly take note that all transactions are in USD unless stated SGD. Pls fill out your profile, if possible with photo, before you book a room. We appreciate knowing a little about our tenants before accepting reservations. Please read Amenities List before booking.
## 2 '- Should be family friendly. '- Cooking is not allowed. '- Once a week washing is allowed.
## 3 No smoking indoors. Please turn off lights/aircon/fans before leaving room. Thanks. Please no additional guests/visitors allowed in apartment. Kindly note that all transactions are in USD unless stated as SGD. Please fill our your profile, if possible with photo, before booking a room. We appreciate knowing a little about our tenants before accepting reservations. Please read Amenities List before booking.
## 4 Home Stay Rules House Rules & Check in Requirements House-rules: - Remembering to clean up the place - Remembering to lock the doors - Remembering to turn off electrical appliances - Keep the common bathroom & kitchen clean Note:Passport copy needed as part of immigration rule.We will have to scan passport for every guests. - No drugs and parties at home - No unexpected & uninvited guests at home - No smoking allowed in the room Note: For additional guests after 4 only mattress are provided.
## 5 Vocational Stay Rules - Do not excessively mess up the room - Do lock the main door after 12 midnight - Do turn off electrical appliances and aircon when not in use - Keep the common bathroom & kitchen clean - No drugs and parties at home - No unexpected & uninvited guests at home - No smoking allowed in the room -Please make up your bed as there is no cleaning during your stay - Rubbish may throw at the outside gate "Green Bin".If need plastic bag to throw please request. Note: For additional guests after 2 only mattress are provided.
## 6 Vocational Stay Rules - Do not excessively mess up the room - Do lock the main door after 12 midnight - Do turn off electrical appliances when not in use - Keep the common bathroom & kitchen clean - No drugs and parties at home - No unexpected & uninvited guests at home - No smoking allowed in the room _Please off the light and aircon if no one in the room. -Please tidy your bed as there is no cleaning till check out. -Please throw your rubbish outside the green dustbin. * For additional guests after 2 only mattress are provided. Note:Passport copy needed as part of immigration rule.We will have to scan passport for every guests.
## thumbnail_url medium_url
## 1 NA NA
## 2 NA NA
## 3 NA NA
## 4 NA NA
## 5 NA NA
## 6 NA NA
## picture_url
## 1 https://a0.muscache.com/im/pictures/24485541/67b0b02e_original.jpg?aki_policy=large
## 2 https://a0.muscache.com/im/pictures/36342984/670d98e1_original.jpg?aki_policy=large
## 3 https://a0.muscache.com/im/pictures/20783922/1966c156_original.jpg?aki_policy=large
## 4 https://a0.muscache.com/im/pictures/24453191/35803acb_original.jpg?aki_policy=large
## 5 https://a0.muscache.com/im/pictures/2440674/ac4f4442_original.jpg?aki_policy=large
## 6 https://a0.muscache.com/im/pictures/568743/7bc623e9_original.jpg?aki_policy=large
## xl_picture_url host_id host_url host_name
## 1 NA 266763 https://www.airbnb.com/users/show/266763 Francesca
## 2 NA 227796 https://www.airbnb.com/users/show/227796 Sujatha
## 3 NA 266763 https://www.airbnb.com/users/show/266763 Francesca
## 4 NA 367042 https://www.airbnb.com/users/show/367042 Belinda
## 5 NA 367042 https://www.airbnb.com/users/show/367042 Belinda
## 6 NA 367042 https://www.airbnb.com/users/show/367042 Belinda
## host_since host_location
## 1 40471 singapore
## 2 40429 Singapore, Singapore
## 3 40471 singapore
## 4 40572 Singapore
## 5 40572 Singapore
## 6 40572 Singapore
## host_about
## 1 I am a private tutor by profession. My husband and I are simple easy going folks.\nWe have well mannered cats.Welcome to our home. I am sure you will find our home pleasant, clean and comfortable.\nPerhaps if you tell us a little about yourself, we can try to make your stay more enjoyable and comfortable.Once again, welcome!!!
## 2 I am a working professional, living in Singapore with my husband & 2 daughters. \n\n
## 3 I am a private tutor by profession. My husband and I are simple easy going folks.\nWe have well mannered cats.Welcome to our home. I am sure you will find our home pleasant, clean and comfortable.\nPerhaps if you tell us a little about yourself, we can try to make your stay more enjoyable and comfortable.Once again, welcome!!!
## 4 Hi My name is Belinda -Housekeeper \n\nI would like to welcome you to my "Homestay Website" \n\nIf you are looking for affordable,cosy and comfortable accomodation for a short term or holiday units ,this is the idea place where you cannot miss it. \n\nAccomodation for: \n\n- an extended stay for studies, min 6 months\n- business,\n- training \n- transitional period before settling in Singapore \n\nRoom rental are available for min 6 month.Room rental dependi on the choice of a common sharing room (family suite) ,a standard room,a deluxe room or a triplet room which varies in sizes. We hope to give you a warm home feeling here with sweet dreams. Please forgive us if we cannot meet your high expectations.We will try our best to make your stay as comfortable as a homestay.\n\nRegards\nBelinda
## 5 Hi My name is Belinda -Housekeeper \n\nI would like to welcome you to my "Homestay Website" \n\nIf you are looking for affordable,cosy and comfortable accomodation for a short term or holiday units ,this is the idea place where you cannot miss it. \n\nAccomodation for: \n\n- an extended stay for studies, min 6 months\n- business,\n- training \n- transitional period before settling in Singapore \n\nRoom rental are available for min 6 month.Room rental dependi on the choice of a common sharing room (family suite) ,a standard room,a deluxe room or a triplet room which varies in sizes. We hope to give you a warm home feeling here with sweet dreams. Please forgive us if we cannot meet your high expectations.We will try our best to make your stay as comfortable as a homestay.\n\nRegards\nBelinda
## 6 Hi My name is Belinda -Housekeeper \n\nI would like to welcome you to my "Homestay Website" \n\nIf you are looking for affordable,cosy and comfortable accomodation for a short term or holiday units ,this is the idea place where you cannot miss it. \n\nAccomodation for: \n\n- an extended stay for studies, min 6 months\n- business,\n- training \n- transitional period before settling in Singapore \n\nRoom rental are available for min 6 month.Room rental dependi on the choice of a common sharing room (family suite) ,a standard room,a deluxe room or a triplet room which varies in sizes. We hope to give you a warm home feeling here with sweet dreams. Please forgive us if we cannot meet your high expectations.We will try our best to make your stay as comfortable as a homestay.\n\nRegards\nBelinda
## host_response_time host_response_rate host_acceptance_rate host_is_superhost
## 1 within an hour 1 N/A f
## 2 N/A N/A N/A f
## 3 within an hour 1 N/A f
## 4 within a few hours 1 1 f
## 5 within a few hours 1 1 f
## 6 within a few hours 1 1 f
## host_thumbnail_url
## 1 https://a0.muscache.com/im/pictures/user/c9b1ceb6-9ea6-4837-a5e1-14e4df45b13e.jpg?aki_policy=profile_small
## 2 https://a0.muscache.com/im/pictures/user/8fd2cddb-2795-40b8-8231-d3a34dc3a1e4.jpg?aki_policy=profile_small
## 3 https://a0.muscache.com/im/pictures/user/c9b1ceb6-9ea6-4837-a5e1-14e4df45b13e.jpg?aki_policy=profile_small
## 4 https://a0.muscache.com/im/users/367042/profile_pic/1382521511/original.jpg?aki_policy=profile_small
## 5 https://a0.muscache.com/im/users/367042/profile_pic/1382521511/original.jpg?aki_policy=profile_small
## 6 https://a0.muscache.com/im/users/367042/profile_pic/1382521511/original.jpg?aki_policy=profile_small
## host_picture_url
## 1 https://a0.muscache.com/im/pictures/user/c9b1ceb6-9ea6-4837-a5e1-14e4df45b13e.jpg?aki_policy=profile_x_medium
## 2 https://a0.muscache.com/im/pictures/user/8fd2cddb-2795-40b8-8231-d3a34dc3a1e4.jpg?aki_policy=profile_x_medium
## 3 https://a0.muscache.com/im/pictures/user/c9b1ceb6-9ea6-4837-a5e1-14e4df45b13e.jpg?aki_policy=profile_x_medium
## 4 https://a0.muscache.com/im/users/367042/profile_pic/1382521511/original.jpg?aki_policy=profile_x_medium
## 5 https://a0.muscache.com/im/users/367042/profile_pic/1382521511/original.jpg?aki_policy=profile_x_medium
## 6 https://a0.muscache.com/im/users/367042/profile_pic/1382521511/original.jpg?aki_policy=profile_x_medium
## host_neighbourhood host_listings_count host_total_listings_count
## 1 Woodlands 2 2
## 2 Bukit Timah 1 1
## 3 Woodlands 2 2
## 4 Tampines 8 8
## 5 Tampines 8 8
## 6 Tampines 8 8
## host_verifications
## 1 ['email', 'phone', 'facebook', 'reviews', 'jumio', 'offline_government_id', 'selfie', 'government_id', 'identity_manual']
## 2 ['email', 'phone', 'facebook', 'reviews', 'offline_government_id', 'selfie', 'government_id', 'work_email']
## 3 ['email', 'phone', 'facebook', 'reviews', 'jumio', 'offline_government_id', 'selfie', 'government_id', 'identity_manual']
## 4 ['email', 'phone', 'reviews', 'manual_offline', 'work_email']
## 5 ['email', 'phone', 'reviews', 'manual_offline', 'work_email']
## 6 ['email', 'phone', 'reviews', 'manual_offline', 'work_email']
## host_has_profile_pic host_identity_verified street
## 1 t f Singapore, Singapore
## 2 t f Singapore, Singapore
## 3 t f Singapore, Singapore
## 4 t t Singapore, Singapore
## 5 t t Singapore, Singapore
## 6 t t Singapore, Singapore
## neighbourhood neighbourhood_cleansed neighbourhood_group_cleansed city
## 1 Woodlands Woodlands North Region Singapore
## 2 Bukit Timah Bukit Timah Central Region Singapore
## 3 Woodlands Woodlands North Region Singapore
## 4 Tampines Tampines East Region Singapore
## 5 Tampines Tampines East Region Singapore
## 6 Tampines Tampines East Region Singapore
## state zipcode market smart_location country_code country latitude
## 1 730702 Singapore Singapore SG Singapore 1.44255
## 2 589664 Singapore Singapore SG Singapore 1.33235
## 3 Singapore Singapore SG Singapore 1.44246
## 4 488405 Singapore Singapore SG Singapore 1.34541
## 5 488405 Singapore Singapore SG Singapore 1.34567
## 6 488405 Singapore Singapore SG Singapore 1.34702
## longitude is_location_exact property_type room_type accommodates bathrooms
## 1 103.7958 t Apartment Private room 1 1.0
## 2 103.7852 t Apartment Private room 2 1.0
## 3 103.7967 t Apartment Private room 1 1.0
## 4 103.9571 t Villa Private room 6 1.0
## 5 103.9596 t House Private room 3 0.5
## 6 103.9610 t House Private room 3 0.5
## bedrooms beds bed_type
## 1 1 1 Real Bed
## 2 1 1 Real Bed
## 3 1 1 Real Bed
## 4 2 3 Real Bed
## 5 1 1 Real Bed
## 6 1 2 Real Bed
## amenities
## 1 {TV,"Cable TV",Internet,Wifi,"Air conditioning","Pets live on this property",Cat(s),Elevator,Washer}
## 2 {TV,"Cable TV",Internet,Wifi,"Air conditioning",Pool,Kitchen,Gym,Elevator,"Family/kid friendly",Washer,Essentials,Shampoo}
## 3 {TV,"Cable TV",Wifi,"Air conditioning",Kitchen,"Pets live on this property",Cat(s),Elevator,Washer,Dryer}
## 4 {TV,Wifi,"Air conditioning",Kitchen,"Pets live on this property","Free street parking","Hot tub","Family/kid friendly",Washer,Dryer,"Smoke detector","Fire extinguisher",Essentials,Shampoo,"Lock on bedroom door",Hangers,"Hair dryer",Iron,"Laptop friendly workspace","Self check-in",Keypad,"Private entrance","Childrenâ\200\231s books and toys","Hot water",Refrigerator,"Garden or backyard","Luggage dropoff allowed","Long term stays allowed"}
## 5 {TV,Internet,Wifi,"Air conditioning",Kitchen,"Pets allowed","Pets live on this property",Dog(s),"Free street parking","Hot tub",Washer,Dryer,"Smoke detector",Essentials,Shampoo,"Lock on bedroom door","Hair dryer","Self check-in",Keypad,"Private entrance","Hot water","Coffee maker",Refrigerator,"Garden or backyard","Paid parking on premises"}
## 6 {TV,Internet,Wifi,"Air conditioning",Kitchen,"Pets live on this property",Dog(s),"Free street parking","Hot tub",Heating,Washer,"Smoke detector",Essentials,Shampoo,"Lock on bedroom door","Hair dryer","Self check-in",Keypad,"Hot water"}
## square_feet price weekly_price monthly_price security_deposit cleaning_fee
## 1 0 85 NA 1064 NA NA
## 2 NA 79 400 1600 NA NA
## 3 0 71 NA 993 NA NA
## 4 205 170 NA 5675 284 57
## 5 NA 96 709 2554 142 28
## 6 NA 85 709 2554 142 28
## guests_included extra_people minimum_nights maximum_nights
## 1 1 14 180 360
## 2 2 20 90 730
## 3 1 14 6 14
## 4 4 28 90 1125
## 5 1 21 90 1125
## 6 1 21 90 1125
## minimum_minimum_nights maximum_minimum_nights minimum_maximum_nights
## 1 180 180 360
## 2 90 90 730
## 3 6 6 14
## 4 90 90 1125
## 5 90 90 1125
## 6 90 90 1125
## maximum_maximum_nights minimum_nights_avg_ntm maximum_nights_avg_ntm
## 1 360 180 360
## 2 730 90 730
## 3 14 6 14
## 4 1125 90 1125
## 5 1125 90 1125
## 6 1125 90 1125
## calendar_updated has_availability availability_30 availability_60
## 1 72 months ago t 0 0
## 2 70 months ago t 30 60
## 3 67 months ago t 30 60
## 4 4 months ago t 30 60
## 5 4 months ago t 30 60
## 6 4 months ago t 30 60
## availability_90 availability_365 calendar_last_scraped number_of_reviews
## 1 0 0 43978 1
## 2 90 365 43978 18
## 3 90 365 43978 20
## 4 90 365 43978 20
## 5 90 365 43978 24
## 6 90 365 43978 48
## number_of_reviews_ltm first_review last_review review_scores_rating
## 1 0 41568 41568 94
## 2 0 41747 41999 91
## 3 0 40719 42278 98
## 4 8 40896 43847 89
## 5 4 40754 43751 83
## 6 15 40667 43839 88
## review_scores_accuracy review_scores_cleanliness review_scores_checkin
## 1 10 10 10
## 2 9 10 10
## 3 10 10 10
## 4 9 8 9
## 5 8 8 9
## 6 9 9 9
## review_scores_communication review_scores_location review_scores_value
## 1 10 8 8
## 2 10 9 9
## 3 10 8 9
## 4 10 9 9
## 5 9 8 8
## 6 9 9 9
## requires_license license jurisdiction_names instant_bookable
## 1 f NA f
## 2 f NA f
## 3 f NA f
## 4 f NA t
## 5 f NA t
## 6 f NA f
## is_business_travel_ready cancellation_policy require_guest_profile_picture
## 1 f flexible t
## 2 f moderate f
## 3 f flexible t
## 4 f flexible f
## 5 f moderate f
## 6 f moderate f
## require_guest_phone_verification calculated_host_listings_count
## 1 t 2
## 2 t 1
## 3 t 2
## 4 t 8
## 5 t 8
## 6 t 8
## calculated_host_listings_count_entire_homes
## 1 0
## 2 0
## 3 0
## 4 0
## 5 0
## 6 0
## calculated_host_listings_count_private_rooms
## 1 2
## 2 1
## 3 2
## 4 8
## 5 8
## 6 8
## calculated_host_listings_count_shared_rooms reviews_per_month
## 1 0 0.01
## 2 0 0.24
## 3 0 0.18
## 4 0 0.19
## 5 0 0.22
## 6 0 0.43
*Exploring the data
** Columns in the raw datasheet
names(listings)
## [1] "id"
## [2] "listing_url"
## [3] "scrape_id"
## [4] "last_scraped"
## [5] "name"
## [6] "summary"
## [7] "space"
## [8] "description"
## [9] "experiences_offered"
## [10] "neighborhood_overview"
## [11] "notes"
## [12] "transit"
## [13] "access"
## [14] "interaction"
## [15] "house_rules"
## [16] "thumbnail_url"
## [17] "medium_url"
## [18] "picture_url"
## [19] "xl_picture_url"
## [20] "host_id"
## [21] "host_url"
## [22] "host_name"
## [23] "host_since"
## [24] "host_location"
## [25] "host_about"
## [26] "host_response_time"
## [27] "host_response_rate"
## [28] "host_acceptance_rate"
## [29] "host_is_superhost"
## [30] "host_thumbnail_url"
## [31] "host_picture_url"
## [32] "host_neighbourhood"
## [33] "host_listings_count"
## [34] "host_total_listings_count"
## [35] "host_verifications"
## [36] "host_has_profile_pic"
## [37] "host_identity_verified"
## [38] "street"
## [39] "neighbourhood"
## [40] "neighbourhood_cleansed"
## [41] "neighbourhood_group_cleansed"
## [42] "city"
## [43] "state"
## [44] "zipcode"
## [45] "market"
## [46] "smart_location"
## [47] "country_code"
## [48] "country"
## [49] "latitude"
## [50] "longitude"
## [51] "is_location_exact"
## [52] "property_type"
## [53] "room_type"
## [54] "accommodates"
## [55] "bathrooms"
## [56] "bedrooms"
## [57] "beds"
## [58] "bed_type"
## [59] "amenities"
## [60] "square_feet"
## [61] "price"
## [62] "weekly_price"
## [63] "monthly_price"
## [64] "security_deposit"
## [65] "cleaning_fee"
## [66] "guests_included"
## [67] "extra_people"
## [68] "minimum_nights"
## [69] "maximum_nights"
## [70] "minimum_minimum_nights"
## [71] "maximum_minimum_nights"
## [72] "minimum_maximum_nights"
## [73] "maximum_maximum_nights"
## [74] "minimum_nights_avg_ntm"
## [75] "maximum_nights_avg_ntm"
## [76] "calendar_updated"
## [77] "has_availability"
## [78] "availability_30"
## [79] "availability_60"
## [80] "availability_90"
## [81] "availability_365"
## [82] "calendar_last_scraped"
## [83] "number_of_reviews"
## [84] "number_of_reviews_ltm"
## [85] "first_review"
## [86] "last_review"
## [87] "review_scores_rating"
## [88] "review_scores_accuracy"
## [89] "review_scores_cleanliness"
## [90] "review_scores_checkin"
## [91] "review_scores_communication"
## [92] "review_scores_location"
## [93] "review_scores_value"
## [94] "requires_license"
## [95] "license"
## [96] "jurisdiction_names"
## [97] "instant_bookable"
## [98] "is_business_travel_ready"
## [99] "cancellation_policy"
## [100] "require_guest_profile_picture"
## [101] "require_guest_phone_verification"
## [102] "calculated_host_listings_count"
## [103] "calculated_host_listings_count_entire_homes"
## [104] "calculated_host_listings_count_private_rooms"
## [105] "calculated_host_listings_count_shared_rooms"
## [106] "reviews_per_month"
** Glance through the raw dataset to understand the spread of values across various columns
summary(listings)
## id listing_url scrape_id last_scraped
## Min. : 49091 Length:7368 Min. :2.02e+13 Min. :43978
## 1st Qu.:17105630 Class :character 1st Qu.:2.02e+13 1st Qu.:43978
## Median :28830365 Mode :character Median :2.02e+13 Median :43978
## Mean :26804549 Mean :2.02e+13 Mean :43978
## 3rd Qu.:37983293 3rd Qu.:2.02e+13 3rd Qu.:43978
## Max. :43542472 Max. :2.02e+13 Max. :43988
##
## name summary space description
## Length:7368 Length:7368 Length:7368 Length:7368
## Class :character Class :character Class :character Class :character
## Mode :character Mode :character Mode :character Mode :character
##
##
##
##
## experiences_offered neighborhood_overview notes
## Length:7368 Length:7368 Length:7368
## Class :character Class :character Class :character
## Mode :character Mode :character Mode :character
##
##
##
##
## transit access interaction house_rules
## Length:7368 Length:7368 Length:7368 Length:7368
## Class :character Class :character Class :character Class :character
## Mode :character Mode :character Mode :character Mode :character
##
##
##
##
## thumbnail_url medium_url picture_url xl_picture_url
## Mode:logical Mode:logical Length:7368 Mode:logical
## NA's:7368 NA's:7368 Class :character NA's:7368
## Mode :character
##
##
##
##
## host_id host_url host_name host_since
## Min. : 23666 Length:7368 Length:7368 Min. :39993
## 1st Qu.: 25394636 Class :character Class :character 1st Qu.:42003
## Median : 66406177 Mode :character Mode :character Median :42469
## Mean :105873209 Mean :42519
## 3rd Qu.:171410854 3rd Qu.:43128
## Max. :346157938 Max. :43964
## NA's :17
## host_location host_about host_response_time host_response_rate
## Length:7368 Length:7368 Length:7368 Length:7368
## Class :character Class :character Class :character Class :character
## Mode :character Mode :character Mode :character Mode :character
##
##
##
##
## host_acceptance_rate host_is_superhost host_thumbnail_url host_picture_url
## Length:7368 Length:7368 Length:7368 Length:7368
## Class :character Class :character Class :character Class :character
## Mode :character Mode :character Mode :character Mode :character
##
##
##
##
## host_neighbourhood host_listings_count host_total_listings_count
## Length:7368 Min. : 0.00 Min. : 0.00
## Class :character 1st Qu.: 1.00 1st Qu.: 1.00
## Mode :character Median : 9.00 Median : 9.00
## Mean : 49.35 Mean : 49.35
## 3rd Qu.: 47.50 3rd Qu.: 47.50
## Max. :391.00 Max. :391.00
## NA's :17 NA's :17
## host_verifications host_has_profile_pic host_identity_verified
## Length:7368 Length:7368 Length:7368
## Class :character Class :character Class :character
## Mode :character Mode :character Mode :character
##
##
##
##
## street neighbourhood neighbourhood_cleansed
## Length:7368 Length:7368 Length:7368
## Class :character Class :character Class :character
## Mode :character Mode :character Mode :character
##
##
##
##
## neighbourhood_group_cleansed city state
## Length:7368 Length:7368 Length:7368
## Class :character Class :character Class :character
## Mode :character Mode :character Mode :character
##
##
##
##
## zipcode market smart_location country_code
## Length:7368 Length:7368 Length:7368 Length:7368
## Class :character Class :character Class :character Class :character
## Mode :character Mode :character Mode :character Mode :character
##
##
##
##
## country latitude longitude is_location_exact
## Length:7368 Min. :1.244 Min. :103.6 Length:7368
## Class :character 1st Qu.:1.296 1st Qu.:103.8 Class :character
## Mode :character Median :1.311 Median :103.8 Mode :character
## Mean :1.314 Mean :103.8
## 3rd Qu.:1.323 3rd Qu.:103.9
## Max. :1.455 Max. :104.0
##
## property_type room_type accommodates bathrooms
## Length:7368 Length:7368 Min. : 1.000 Min. : 0.000
## Class :character Class :character 1st Qu.: 2.000 1st Qu.: 1.000
## Mode :character Mode :character Median : 2.000 Median : 1.000
## Mean : 3.304 Mean : 1.536
## 3rd Qu.: 4.000 3rd Qu.: 2.000
## Max. :16.000 Max. :21.000
## NA's :3
## bedrooms beds bed_type amenities
## Min. : 0.00 Min. : 0.000 Length:7368 Length:7368
## 1st Qu.: 1.00 1st Qu.: 1.000 Class :character Class :character
## Median : 1.00 Median : 1.000 Mode :character Mode :character
## Mean : 1.32 Mean : 1.985
## 3rd Qu.: 2.00 3rd Qu.: 2.000
## Max. :11.00 Max. :58.000
## NA's :12 NA's :67
## square_feet price weekly_price monthly_price
## Min. : 0.0 Min. : 14.0 Min. : 100.0 Min. : 450
## 1st Qu.: 0.0 1st Qu.: 65.0 1st Qu.: 400.0 1st Qu.: 1324
## Median : 110.5 Median : 125.0 Median : 583.0 Median : 2114
## Mean : 165.3 Mean : 177.1 Mean : 843.6 Mean : 2933
## 3rd Qu.: 282.2 3rd Qu.: 194.0 3rd Qu.: 1000.0 3rd Qu.: 3600
## Max. :1001.0 Max. :13000.0 Max. :14898.0 Max. :55867
## NA's :7334 NA's :6905 NA's :6876
## security_deposit cleaning_fee guests_included extra_people
## Min. : 0.0 Min. : 0.00 Min. : 1.000 Min. : 0.00
## 1st Qu.: 0.0 1st Qu.: 15.00 1st Qu.: 1.000 1st Qu.: 0.00
## Median : 150.0 Median : 30.00 Median : 1.000 Median : 10.00
## Mean : 230.5 Mean : 39.41 Mean : 1.899 Mean : 14.88
## 3rd Qu.: 250.0 3rd Qu.: 50.00 3rd Qu.: 2.000 3rd Qu.: 20.00
## Max. :7094.0 Max. :900.00 Max. :50.000 Max. :404.00
## NA's :2244 NA's :1977
## minimum_nights maximum_nights minimum_minimum_nights
## Min. : 1.0 Min. : 1.0 Min. : 1.00
## 1st Qu.: 2.0 1st Qu.: 1124.0 1st Qu.: 1.00
## Median : 4.0 Median : 1125.0 Median : 3.00
## Mean : 21.3 Mean : 932.3 Mean : 20.61
## 3rd Qu.: 18.0 3rd Qu.: 1125.0 3rd Qu.: 18.00
## Max. :1000.0 Max. :100000.0 Max. :1000.00
##
## maximum_minimum_nights minimum_maximum_nights maximum_maximum_nights
## Min. : 1.00 Min. : 1.0 Min. :1.000e+00
## 1st Qu.: 2.00 1st Qu.: 1124.0 1st Qu.:1.125e+03
## Median : 5.00 Median : 1125.0 Median :1.125e+03
## Mean : 21.33 Mean : 954.8 Mean :1.167e+06
## 3rd Qu.: 18.00 3rd Qu.: 1125.0 3rd Qu.:1.125e+03
## Max. :1000.00 Max. :100000.0 Max. :2.147e+09
##
## minimum_nights_avg_ntm maximum_nights_avg_ntm calendar_updated
## Min. : 1.00 Min. :1.000e+00 Length:7368
## 1st Qu.: 2.00 1st Qu.:1.124e+03 Class :character
## Median : 4.00 Median :1.125e+03 Mode :character
## Mean : 20.93 Mean :9.822e+05
## 3rd Qu.: 18.00 3rd Qu.:1.125e+03
## Max. :1000.00 Max. :1.807e+09
##
## has_availability availability_30 availability_60 availability_90
## Length:7368 Min. : 0.00 Min. : 0.00 Min. : 0.00
## Class :character 1st Qu.: 0.00 1st Qu.: 0.00 1st Qu.: 0.00
## Mode :character Median :25.00 Median :53.00 Median :83.00
## Mean :16.69 Mean :36.21 Mean :56.38
## 3rd Qu.:30.00 3rd Qu.:59.00 3rd Qu.:89.00
## Max. :30.00 Max. :60.00 Max. :90.00
##
## availability_365 calendar_last_scraped number_of_reviews number_of_reviews_ltm
## Min. : 0.0 Min. :43978 Min. : 0.00 Min. : 0.000
## 1st Qu.: 0.0 1st Qu.:43978 1st Qu.: 0.00 1st Qu.: 0.000
## Median :270.0 Median :43978 Median : 1.00 Median : 0.000
## Mean :208.3 Mean :43978 Mean : 12.75 Mean : 4.145
## 3rd Qu.:364.0 3rd Qu.:43978 3rd Qu.: 8.00 3rd Qu.: 3.000
## Max. :365.0 Max. :43988 Max. :370.00 Max. :139.000
##
## first_review last_review review_scores_rating review_scores_accuracy
## Min. :40667 Min. :41568 Min. : 20.00 Min. : 2.00
## 1st Qu.:42776 1st Qu.:43524 1st Qu.: 87.00 1st Qu.: 9.00
## Median :43320 Median :43823 Median : 94.00 Median :10.00
## Mean :43183 Mean :43630 Mean : 90.51 Mean : 9.22
## 3rd Qu.:43662 3rd Qu.:43889 3rd Qu.:100.00 3rd Qu.:10.00
## Max. :43977 Max. :43978 Max. :100.00 Max. :10.00
## NA's :2822 NA's :2822 NA's :2956 NA's :2961
## review_scores_cleanliness review_scores_checkin review_scores_communication
## Min. : 2.00 Min. : 2.00 Min. : 2.000
## 1st Qu.: 8.00 1st Qu.: 9.00 1st Qu.: 9.000
## Median : 9.00 Median :10.00 Median :10.000
## Mean : 8.98 Mean : 9.51 Mean : 9.485
## 3rd Qu.:10.00 3rd Qu.:10.00 3rd Qu.:10.000
## Max. :10.00 Max. :10.00 Max. :10.000
## NA's :2959 NA's :2965 NA's :2961
## review_scores_location review_scores_value requires_license
## Min. : 2.000 Min. : 2.000 Length:7368
## 1st Qu.: 9.000 1st Qu.: 9.000 Class :character
## Median :10.000 Median : 9.000 Mode :character
## Mean : 9.375 Mean : 8.951
## 3rd Qu.:10.000 3rd Qu.:10.000
## Max. :10.000 Max. :10.000
## NA's :2966 NA's :2965
## license jurisdiction_names instant_bookable
## Length:7368 Mode:logical Length:7368
## Class :character NA's:7368 Class :character
## Mode :character Mode :character
##
##
##
##
## is_business_travel_ready cancellation_policy require_guest_profile_picture
## Length:7368 Length:7368 Length:7368
## Class :character Class :character Class :character
## Mode :character Mode :character Mode :character
##
##
##
##
## require_guest_phone_verification calculated_host_listings_count
## Length:7368 Min. : 1.00
## Class :character 1st Qu.: 2.00
## Mode :character Median : 10.00
## Mean : 43.88
## 3rd Qu.: 52.00
## Max. :337.00
##
## calculated_host_listings_count_entire_homes
## Min. : 0.00
## 1st Qu.: 0.00
## Median : 1.00
## Mean : 31.84
## 3rd Qu.: 25.00
## Max. :332.00
##
## calculated_host_listings_count_private_rooms
## Min. : 0.000
## 1st Qu.: 0.000
## Median : 1.000
## Mean : 8.861
## 3rd Qu.: 4.000
## Max. :132.000
##
## calculated_host_listings_count_shared_rooms reviews_per_month
## Min. : 0.000 Min. : 0.0100
## 1st Qu.: 0.000 1st Qu.: 0.1200
## Median : 0.000 Median : 0.3300
## Mean : 0.492 Mean : 0.8006
## 3rd Qu.: 0.000 3rd Qu.: 0.9600
## Max. :20.000 Max. :20.6700
## NA's :2822
** Exploring the data to find columns with blank values
summary(is.na(listings))
## id listing_url scrape_id last_scraped
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368 FALSE:7368
##
## name summary space description
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368 FALSE:7368
##
## experiences_offered neighborhood_overview notes transit
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368 FALSE:7368
##
## access interaction house_rules thumbnail_url medium_url
## Mode :logical Mode :logical Mode :logical Mode:logical Mode:logical
## FALSE:7367 FALSE:7368 FALSE:7367 TRUE:7368 TRUE:7368
## TRUE :1 TRUE :1
## picture_url xl_picture_url host_id host_url host_name
## Mode :logical Mode:logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 TRUE:7368 FALSE:7368 FALSE:7368 FALSE:7368
##
## host_since host_location host_about host_response_time
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7351 FALSE:7368 FALSE:7367 FALSE:7368
## TRUE :17 TRUE :1
## host_response_rate host_acceptance_rate host_is_superhost host_thumbnail_url
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368 FALSE:7368
##
## host_picture_url host_neighbourhood host_listings_count
## Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7351
## TRUE :17
## host_total_listings_count host_verifications host_has_profile_pic
## Mode :logical Mode :logical Mode :logical
## FALSE:7351 FALSE:7368 FALSE:7368
## TRUE :17
## host_identity_verified street neighbourhood neighbourhood_cleansed
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368 FALSE:7368
##
## neighbourhood_group_cleansed city state zipcode
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7365 FALSE:7368
## TRUE :3
## market smart_location country_code country
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368 FALSE:7368
##
## latitude longitude is_location_exact property_type
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368 FALSE:7368
##
## room_type accommodates bathrooms bedrooms
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7365 FALSE:7356
## TRUE :3 TRUE :12
## beds bed_type amenities square_feet
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7301 FALSE:7368 FALSE:7368 FALSE:34
## TRUE :67 TRUE :7334
## price weekly_price monthly_price security_deposit
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:463 FALSE:492 FALSE:5124
## TRUE :6905 TRUE :6876 TRUE :2244
## cleaning_fee guests_included extra_people minimum_nights
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:5391 FALSE:7368 FALSE:7368 FALSE:7368
## TRUE :1977
## maximum_nights minimum_minimum_nights maximum_minimum_nights
## Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368
##
## minimum_maximum_nights maximum_maximum_nights minimum_nights_avg_ntm
## Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368
##
## maximum_nights_avg_ntm calendar_updated has_availability availability_30
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368 FALSE:7368
##
## availability_60 availability_90 availability_365 calendar_last_scraped
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368 FALSE:7368
##
## number_of_reviews number_of_reviews_ltm first_review last_review
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:4546 FALSE:4546
## TRUE :2822 TRUE :2822
## review_scores_rating review_scores_accuracy review_scores_cleanliness
## Mode :logical Mode :logical Mode :logical
## FALSE:4412 FALSE:4407 FALSE:4409
## TRUE :2956 TRUE :2961 TRUE :2959
## review_scores_checkin review_scores_communication review_scores_location
## Mode :logical Mode :logical Mode :logical
## FALSE:4403 FALSE:4407 FALSE:4402
## TRUE :2965 TRUE :2961 TRUE :2966
## review_scores_value requires_license license jurisdiction_names
## Mode :logical Mode :logical Mode :logical Mode:logical
## FALSE:4403 FALSE:7368 FALSE:7368 TRUE:7368
## TRUE :2965
## instant_bookable is_business_travel_ready cancellation_policy
## Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368
##
## require_guest_profile_picture require_guest_phone_verification
## Mode :logical Mode :logical
## FALSE:7368 FALSE:7368
##
## calculated_host_listings_count calculated_host_listings_count_entire_homes
## Mode :logical Mode :logical
## FALSE:7368 FALSE:7368
##
## calculated_host_listings_count_private_rooms
## Mode :logical
## FALSE:7368
##
## calculated_host_listings_count_shared_rooms reviews_per_month
## Mode :logical Mode :logical
## FALSE:7368 FALSE:4546
## TRUE :2822
** Dropping redundant features irrelevant to the scope of the project
listings=listings[c("host_id", "host_since", 'host_listings_count',"host_is_superhost", "host_has_profile_pic", "host_identity_verified", "neighbourhood_cleansed", "neighbourhood_group_cleansed", "latitude", "longitude", "property_type", "room_type", "accommodates", "bathrooms", "bedrooms", "security_deposit", "cleaning_fee", "number_of_reviews", "number_of_reviews_ltm", "review_scores_rating", "review_scores_cleanliness", "review_scores_checkin", "review_scores_communication", "review_scores_location", "review_scores_value", "instant_bookable", "reviews_per_month") ]
** Reviewing the datatype for each column in the final dataframe
summary(listings)
## host_id host_since host_listings_count host_is_superhost
## Min. : 23666 Min. :39993 Min. : 0.00 Length:7368
## 1st Qu.: 25394636 1st Qu.:42003 1st Qu.: 1.00 Class :character
## Median : 66406177 Median :42469 Median : 9.00 Mode :character
## Mean :105873209 Mean :42519 Mean : 49.35
## 3rd Qu.:171410854 3rd Qu.:43128 3rd Qu.: 47.50
## Max. :346157938 Max. :43964 Max. :391.00
## NA's :17 NA's :17
## host_has_profile_pic host_identity_verified neighbourhood_cleansed
## Length:7368 Length:7368 Length:7368
## Class :character Class :character Class :character
## Mode :character Mode :character Mode :character
##
##
##
##
## neighbourhood_group_cleansed latitude longitude
## Length:7368 Min. :1.244 Min. :103.6
## Class :character 1st Qu.:1.296 1st Qu.:103.8
## Mode :character Median :1.311 Median :103.8
## Mean :1.314 Mean :103.8
## 3rd Qu.:1.323 3rd Qu.:103.9
## Max. :1.455 Max. :104.0
##
## property_type room_type accommodates bathrooms
## Length:7368 Length:7368 Min. : 1.000 Min. : 0.000
## Class :character Class :character 1st Qu.: 2.000 1st Qu.: 1.000
## Mode :character Mode :character Median : 2.000 Median : 1.000
## Mean : 3.304 Mean : 1.536
## 3rd Qu.: 4.000 3rd Qu.: 2.000
## Max. :16.000 Max. :21.000
## NA's :3
## bedrooms security_deposit cleaning_fee number_of_reviews
## Min. : 0.00 Min. : 0.0 Min. : 0.00 Min. : 0.00
## 1st Qu.: 1.00 1st Qu.: 0.0 1st Qu.: 15.00 1st Qu.: 0.00
## Median : 1.00 Median : 150.0 Median : 30.00 Median : 1.00
## Mean : 1.32 Mean : 230.5 Mean : 39.41 Mean : 12.75
## 3rd Qu.: 2.00 3rd Qu.: 250.0 3rd Qu.: 50.00 3rd Qu.: 8.00
## Max. :11.00 Max. :7094.0 Max. :900.00 Max. :370.00
## NA's :12 NA's :2244 NA's :1977
## number_of_reviews_ltm review_scores_rating review_scores_cleanliness
## Min. : 0.000 Min. : 20.00 Min. : 2.00
## 1st Qu.: 0.000 1st Qu.: 87.00 1st Qu.: 8.00
## Median : 0.000 Median : 94.00 Median : 9.00
## Mean : 4.145 Mean : 90.51 Mean : 8.98
## 3rd Qu.: 3.000 3rd Qu.:100.00 3rd Qu.:10.00
## Max. :139.000 Max. :100.00 Max. :10.00
## NA's :2956 NA's :2959
## review_scores_checkin review_scores_communication review_scores_location
## Min. : 2.00 Min. : 2.000 Min. : 2.000
## 1st Qu.: 9.00 1st Qu.: 9.000 1st Qu.: 9.000
## Median :10.00 Median :10.000 Median :10.000
## Mean : 9.51 Mean : 9.485 Mean : 9.375
## 3rd Qu.:10.00 3rd Qu.:10.000 3rd Qu.:10.000
## Max. :10.00 Max. :10.000 Max. :10.000
## NA's :2965 NA's :2961 NA's :2966
## review_scores_value instant_bookable reviews_per_month
## Min. : 2.000 Length:7368 Min. : 0.0100
## 1st Qu.: 9.000 Class :character 1st Qu.: 0.1200
## Median : 9.000 Mode :character Median : 0.3300
## Mean : 8.951 Mean : 0.8006
## 3rd Qu.:10.000 3rd Qu.: 0.9600
## Max. :10.000 Max. :20.6700
## NA's :2965 NA's :2822
** Exploring the data to find columns with blank values
summary(is.na(listings))
## host_id host_since host_listings_count host_is_superhost
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7351 FALSE:7351 FALSE:7368
## TRUE :17 TRUE :17
## host_has_profile_pic host_identity_verified neighbourhood_cleansed
## Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368
##
## neighbourhood_group_cleansed latitude longitude property_type
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7368 FALSE:7368
##
## room_type accommodates bathrooms bedrooms
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:7368 FALSE:7368 FALSE:7365 FALSE:7356
## TRUE :3 TRUE :12
## security_deposit cleaning_fee number_of_reviews number_of_reviews_ltm
## Mode :logical Mode :logical Mode :logical Mode :logical
## FALSE:5124 FALSE:5391 FALSE:7368 FALSE:7368
## TRUE :2244 TRUE :1977
## review_scores_rating review_scores_cleanliness review_scores_checkin
## Mode :logical Mode :logical Mode :logical
## FALSE:4412 FALSE:4409 FALSE:4403
## TRUE :2956 TRUE :2959 TRUE :2965
## review_scores_communication review_scores_location review_scores_value
## Mode :logical Mode :logical Mode :logical
## FALSE:4407 FALSE:4402 FALSE:4403
## TRUE :2961 TRUE :2966 TRUE :2965
## instant_bookable reviews_per_month
## Mode :logical Mode :logical
## FALSE:7368 FALSE:4546
## TRUE :2822
listings=listings[which(listings$host_is_superhost !=""),]
listings$host_since=as.Date(listings$host_since, origin = "1900-01-01")
naniar::gg_miss_var(listings)
library(ggplot2)
p=ggplot(listings,aes(x=host_since))+geom_line(aes(y=`host_listings_count`),colour='orange',size=1.5)+ggtitle("host_listings_count")+xlab("Date")+ylab("#Listings")+scale_y_continuous(labels = function(x) format(x, scientific = FALSE))
p
#counts <- table(listings$neighbourhood_group_cleansed)
#barplot(counts, main="Distribution of AirBnb properties across Singapore region's",
# xlab="Number of properties")
ggplot(listings) +
geom_bar(aes(x = neighbourhood_group_cleansed, fill = host_is_superhost))
#counts <- table(listings$neighbourhood_group_cleansed)
#barplot(counts, main="Distribution of AirBnb properties across Singapore region's",
# xlab="Number of properties")
ggplot(listings) +
geom_bar(aes(x = neighbourhood_group_cleansed, fill = factor(host_is_superhost)), position = position_dodge(preserve = 'single'))
### Split of room type across different regions
#counts <- table(listings$neighbourhood_group_cleansed)
#barplot(counts, main="Distribution of AirBnb properties across Singapore region's",
# xlab="Number of properties")
ggplot(listings) +
geom_bar(aes(x = neighbourhood_group_cleansed, fill = room_type))
### Number of listings grouped by neightbourhood groups and further areas within Singapore
#counts <- table(listings$neighbourhood_group_cleansed)
#barplot(counts, main="Distribution of AirBnb properties across Singapore region's",
# xlab="Number of properties")
ggplot(listings) +
geom_bar(aes(x = neighbourhood_group_cleansed, fill = factor(neighbourhood_cleansed)), position = position_dodge(preserve = 'single'))+ theme(legend.position="bottom")
###
#counts <- table(listings$neighbourhood_group_cleansed)
#barplot(counts, main="Distribution of AirBnb properties across Singapore region's",
# xlab="Number of properties")
ggplot(listings) +
geom_bar(aes(x = neighbourhood_group_cleansed, fill = neighbourhood_cleansed))+ theme(legend.position="bottom")
## Final Visualization
To facilitate exploration of properties across regions and at street level, below is an interactive visualization initially clustered to main regions. One can zoom-in or out to explore the area/vicinity of preference
listings.SP=SpatialPointsDataFrame(listings[,c(9,10)],listings[,-c(9,10)])
m=
leaflet() %>%
addTiles() %>%
addMarkers(data=listings,lng=~longitude, lat=~latitude,popup=~host_id,clusterOptions = markerClusterOptions())
m
It is quite evident that properties are spread across Singapore however more are clustered in the central region as there are more tourist places and official complexes.
Comparatively lesser number of hosts are super hosts and majority are not tagged as super host
Major room types are entire property followed by individual rooms across the 5 regions in Singapore
Data - “AirBnb”