50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

IPtoCountry (version 0.0.1)

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

Description

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

Usage

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

Run this code
# Only run this example in interactive R sessions
if(interactive()) {
  IP.location = IP_location(IPs)
  head(IP.location)
}

Run the code above in your browser using DataLab