validateLonsLats {MazamaCoreUtils} | R Documentation |
Validate longitude and latitude vectors
Description
Longitude and latitude vectors validated to be parseable as numeric and within the bounds -180:180 and -90:90. If validation fails, an error is generated.
Usage
validateLonsLats(longitude = NULL, latitude = NULL, na.rm = FALSE)
Arguments
longitude |
Vector of longitudes in decimal degrees E. |
latitude |
Vector of latitudes in decimal degrees N. |
na.rm |
Logical specifying whether to remove |
Value
Invisibly returns TRUE
if no error message has been generated.
[Package MazamaCoreUtils version 0.5.2 Index]