coords2country: coords2country

Description Usage Arguments Details Value Examples

Description

Finds the country where the location is located by latitude and longitude.

Usage

1
coords2country(latitude, longitude)

Arguments

latitude

A numeric value representing latitude

longitude

A numeric value representing longitude

Details

I made small modification to the function coords2continent. See the location: https://stackoverflow.com/questions/21708488/get-country-and-continent-from-longitude-and-latitude-point-in-r Thanks to the user Andy for the function coords2continent.

Value

a string representing the name of the Country. The NA is returned if the coordinates (logitude and latitude) is not in a country.

Examples

1
country <- coords2country(33.40,73.30)

constantin345/NOOA documentation built on May 16, 2019, 7:09 p.m.