View source: R/latlon_is.valid.R
latlon_is.valid | R Documentation |
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)
latlon_is.valid(lon, lat, quiet = TRUE)
lon |
numeric vector of longitudes in decimal degrees, same length |
lat |
vector of latitudes in decimal degrees |
quiet |
optional logical, if TRUE, show list of bad values in console |
logical vector, one element per lat lon pair (location)
latlon_df_clean() latlon_infer() latlon_is.valid() latlon_as.numeric()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.