latlon_is.valid: Validate latitudes and longitudes

View source: R/latlon_is.valid.R

latlon_is.validR Documentation

Validate latitudes and longitudes

Description

Check each latitude and longitude value to see if they are NA or outside expected numeric ranges (based on approx ranges of lat lon seen among block internal points dataset) lat must be between 17.5 and 71.5, and lon must be ( between -180 and -64) OR (between 172 and 180)

Usage

latlon_is.valid(lon, lat, quiet = TRUE)

Arguments

lon

numeric vector of longitudes in decimal degrees, same length

lat

vector of latitudes in decimal degrees

Value

logical vector, one element per lat lon pair (location)

See Also

latlon_df_clean() latlon_infer() latlon_is.valid() latlon_as.numeric()

Examples

 ## Not run: 
 table(latlon_is.valid(lat =  frs$lat, lon =  frs$lon))
 table(latlon_is.valid(lat =  blockpoints$lat, lon =  blockpoints$lon))
  
## End(Not run)

ejanalysis/proxistat documentation built on April 2, 2024, 10:13 a.m.