# Load required packages
library(tidyverse)
library(tidymodels) # for splitting and metrics
library(ggplot2)
# Read the data
houses <- read_csv("data/izmir_houses.csv")
glimpse(houses)Rows: 2,000
Columns: 6
$ price <dbl> 2372000, 3057000, 1660000, 1818000, 4108000, 2461000, 1316000…
$ sqm <dbl> 63, 92, 60, 81, 102, 86, 88, 62, 47, 79, 84, 84, 86, 83, 47, …
$ bedrooms <dbl> 1, 3, 1, 2, 3, 3, 2, 2, 2, 1, 2, 2, 3, 2, 1, 3, 4, 2, 3, 3, 2…
$ age <dbl> 3, 32, 36, 48, 5, 19, 36, 34, 39, 16, 9, 22, 5, 7, 39, 34, 38…
$ district <chr> "Buca", "Bayraklı", "Narlıdere", "Karşıyaka", "Güzelbahçe", "…
$ floor <dbl> 10, 0, 0, 2, 9, 5, 9, 9, 0, 1, 7, 4, 4, 0, 2, 1, 0, 0, 0, 3, …