/RB01_Airbnb_Barcelona

Insights and visualization of Barcelona Airbnb data

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

πŸ™οΈ Barcelona Airbnb Insights

Authors: Daniel Herrera & Rodrigo GonzΓ‘lez

Date: 22/02/2024


1. Project Overview

The project is an observational study of Airbnb data from the city of Barcelona, aimed at extracting insights and drawing conclusions within the context of the city's increasingly saturated tourism industry and strained housing market. Our data-driven approach is complemented by an analysis of local policies and the latest information from Spanish media on the subject, ensuring a comprehensive perspective. The project has been developed using a GitHub repository to facilitate collaboration across multiple devices and to ensure reproducibility of the results.

2. Repository structure:

  • πŸ“ 'Archive': Contains older versions of the code, as well as drafts for R expressions.
  • πŸ“ 'Assets': Holds images embedded in the RMarkdown report.
  • πŸ“ 'Barcelona-AirBnB-Insights_cache': Caches some of the plots (especially maps) to speed up the knitting process.
  • πŸ“ 'Barcelona-AirBnB-Insights_files': Contains files relevant to the RMarkdown script.
  • πŸ“ 'Data': Contains the data sources used for analysis.
  • πŸ“„ Barcelona-AirBnB-Insights.html: The exported report in HTML.
  • πŸ“„ Barcelona-AirBnB-Insights.pdf: The exported report in PDF.
  • πŸ“„ Barcelona-AirBnB-Insights.Rmd: The main RMarkdown file for the report.
  • πŸ“„ README.md: This file, providing an overview of the project.

3. Additional notes

  • πŸ“‚ Working Directory: The R working directory (wd) is configured to be the directory of the file itself, ensuring it looks for the data sets there.
  • πŸ”„ Automatic Data Import: The R code automatically creates data frames assigned to variables from the contents of the 'Data' folder, as long as they include the listings.csv file. This import workflow was initially designed for a project covering multiple cities' data.
  • 🌐 API Import: The second data set, imported via API, can be found in 2023_pad_mdbas_sexe.csv in the 'Data' folder as an alternative import source.