guess_lat_long_cols: Guess latitude and longitude column names Helper function for...

View source: R/check_function_arguments.R

guess_lat_long_colsR Documentation

Guess latitude and longitude column names Helper function for internal use only. Adapted from the leaflet function guessLatLongCols. Rather than looking for the exact variable names lat or latitude, the regular expression allows for variables that start or end with lat/latitude for latitude; similarly for longitude.

Description

Guess latitude and longitude column names Helper function for internal use only. Adapted from the leaflet function guessLatLongCols. Rather than looking for the exact variable names lat or latitude, the regular expression allows for variables that start or end with lat/latitude for latitude; similarly for longitude.

Usage

guess_lat_long_cols(names, stopOnFailure = TRUE)

Arguments

names

Vector of column names.

stopOnFailure

Should the function throw an error when it cannot identify latitude and longitude columns in the data (TRUE) or not (FALSE)?

Value

List with latitude and longitude column names.


DrivePlotR documentation built on Nov. 22, 2026, 5:06 p.m.