library(tibble)
hotels <- tibble(
island = c("Gran Canaria", "Tenerife", "Lanzarote",
"Fuerteventura", "La Palma"),
stars = c(4L, 5L, 4L, 3L, 3L),
price = c(82, 95, 110, 100, 78),
rating = c(8.2, 9.1, 7.5, 6.9, 8.0),
nights = c(12.5, 18.3, 9.8, 11.2, 6.4)
)
tourists <- tibble(
origin_country = c("DE", "DE", "UK", "UK", "UK",
"ES", "ES", "FR", "DE", "UK"),
island = c("Gran Canaria", "Tenerife", "Lanzarote",
"Tenerife", "Lanzarote", "Gran Canaria",
"Gran Canaria", "Tenerife", "Gran Canaria",
"Lanzarote"),
main_purpose = c("leisure", "leisure", "leisure", "business",
"leisure", "leisure", "business", "leisure",
"leisure", "leisure")
)