validateLonLat: Validate longitude and latitude values

View source: R/utils-location.R

validateLonLatR Documentation

Validate longitude and latitude values

Description

Longitude and latitude are validated to be parseable as numeric and within the bounds -180:180 and -90:90. If validation fails, an error is generated.

Usage

validateLonLat(longitude = NULL, latitude = NULL)

Arguments

longitude

Single longitude in decimal degrees E.

latitude

Single latitude in decimal degrees N.

Value

Invisibly returns TRUE if no error message has been generated.


MazamaCoreUtils documentation built on Nov. 14, 2023, 1:09 a.m.