GeocodeIPs | R Documentation |
Returns the country and continent of a vector of IPv4 or IPv6 strings.
GeocodeIPs(ips)
ips |
Character |
Uses the MaxMind database from
the rgeolocate
package.
Returns NA
when no data is available.
A data.frame
with columns
ips
- the original input ips
continent_name
- the name of the continent where the IP is located
country_name
- the name of the country where the IP is located
country_code
- the 2 letter country code (ISO Alpha-2)
GeocodeIPs(c("123.51.111.134", "216.27.61.137", "2001:780:53d2::1"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.