Description Usage Arguments Details Value Examples
Finds the country where the location is located
by latitude
and longitude
.
1 | coords2country(latitude, longitude)
|
latitude |
A numeric value representing latitude |
longitude |
A numeric value representing longitude |
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.
a string representing the name of the Country. The NA is returned if the coordinates (logitude and latitude) is not in a country.
1 | country <- coords2country(33.40,73.30)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.