polluted_cities <- tibble(
city = c("New York", "London", "Doha",
"Hongkong", "Beijing"),
size = c("large", "large", "small",
"small", "large"),
amount = c(23.4, 22.2, 12.4,
15.6, 121.0)
)
polluted_cities %>%
rename(pollution = amount)
# A tibble: 5 × 3
city size pollution
<chr> <chr> <dbl>
1 New York large 23.4
2 London large 22.2
3 Doha small 12.4
4 Hongkong small 15.6
5 Beijing large 121