process_cities_file: Process city file

Description Usage Arguments Value


This function takes the dataframe read in from the file specified with citycsv in gen_hw_set and renames the columns for latitude and longitude lat and lon, based on the user's selections in lat_lon_colnames for gen_hw_set. If there are extra columns besides those and the city column, this function removes them.


process_cities_file(cities, lat_lon_colnames)



Dataframe with study cities and their latitudes and longitudes.The dataframe must have a column named city with a unique identifier for each city in the study, as well as columns for latitude and longitude. Other columns may be included in the dataset, but will not be passed through to later code.


A character vector of length two with the column names in the citycsv dataframe for latitude (first vector element) and longitude (second vector element)


A processed version of the latitude and longitude dataframe.

Search within the futureheatwaves package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.