securityvisionnr/data-raw/cities.R

14 lines
322 B
R
Raw Normal View History

2023-05-08 15:58:56 +00:00
cities <- readr::read_csv("data-raw/city_geocoordinates.csv")
cities <- cities |>
janitor::clean_names() |>
rename(city = x1)
cities <- cities |>
dplyr::mutate(dplyr::across(where(is.character), tolower))
cities <- cities |>
get_decimal_coordinates(has_coordinates)
usethis::use_data(cities, overwrite = TRUE)