IP_location: Convert IP address to location (country name, region, city,...

Description Usage Arguments Value Examples

Description

Convert IP address to location (country name, region, city, zip code, latitude, longitude, and GMT)

Usage

1
IP_location(IP.address, IP.database = NULL)

Arguments

IP.address

a character or factor vector of one or more IP addresses

IP.database

an IP database, see ?ip2location.lite.db11

Value

Returns a data.frame containin the country name, region, city, and zip code corresponding to IP.address

Examples

1
2
3
4
5
# Only run this example in interactive R sessions
if(interactive()) {
  IP.location = IP_location(IPs)
  head(IP.location)
}

Example output



IPtoCountry documentation built on May 2, 2019, 6:03 a.m.