View source: R/check_function_arguments.R
| guess_lat_long_cols | R Documentation |
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.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.
guess_lat_long_cols(names, stopOnFailure = TRUE)
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)? |
List with latitude and longitude column names.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.