validateCoords

0th

Percentile

Utility function to check if a coordinates is valid

Utility function to check if a coordinates is valid

Usage
validateCoords(lng, lat, funcName, warn = TRUE, mode = c("point",
  "polygon"))
Arguments
lng

vector with longitude values

lat

vector with latitude values

funcName

Name of calling function

warn

A boolean. Whether to generate a warning message if there are rows with missing/invalid data

mode

if "point" then warn about any NA lng/lat values; if "polygon" then NA values are expected to be used as polygon delimiters

Aliases
  • validateCoords
Documentation reproduced from package leaflet, version 2.0.2, License: GPL-3

Community examples

Looks like there are no examples yet.