validateLonsLats: Validate longitude and latitude vectors

View source: R/utils-location.R

validateLonsLatsR 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 NA values before validation.

Value

Invisibly returns TRUE if no error message has been generated.


MazamaCoreUtils documentation built on May 29, 2024, 4:47 a.m.