Get lat lon columns and clean up those latitude and longitude columns in a data.frame
Source:R/latlon_df_clean.R
latlon_df_clean.Rd
Utility to identify lat and lon columns, renaming and cleaning them up.
Value
Returns the same data.frame but with relevant colnames changed to lat and lon, and invalid lat or lon values cleaned up if possible or else replaced with NA, and optional columns "valid" and "invalid_msg"
Details
Tries to figure out which columns seem to have lat lon values, renames those in the data.frame. Cleans up lat and lon values (removes extra characters, makes numeric)