if the 'minimum_nights' column matches
then return certain values from the 'host_column' column.
I filtered the minimum_nights
column with values '> 90'.
Now, is it possible to get values from host_location
?
just some certain values (if only outside the 'UK' region?
airbnb1 <- airbnb1 %>%
select(host_location, minimum_nights, revenue) %>%
filter(minimum_nights > 90) %>%
mutate(host_location = ifelse(host_location== "", 'unknown',
host_location)) %>%
reframe(host_location, minimum_nights, revenue)