Checks user-provided longitude and latitude values that they fall in
Australia. Errors if any values do not.
Usage
check_oz_lonlat(longitude, latitude)
Arguments
- longitude
user provided numeric value as decimal degrees
- latitude
user provided numeric value as decimal degrees
Value
No return value, called for side-effects. Errors if the latitude or
longitude values are outside of Australia.
Examples
# No error, Perth, WA
check_oz_lonlat(longitude = 115.86, latitude = -31.95)
# Error, in northern hemisphere
check_oz_lonlat(longitude = 115.86, latitude = 31.95)
#> Error: Please check your latitude, {latitude}, value to be sure it is valid for Australian data.