Learn R Programming

IPtoCountry (version 0.0.1)

IP_lookup: Match IP integer to country name

Description

Match IP integer to country name

Usage

IP_lookup(IP.integer, IP.database = NULL)

Arguments

IP.integer
a character or factor vector of one or more IP addresses
IP.database
an IP database, see ?ip2location.lite.db1 for details on default database from http://lite.ip2location.com

Value

Returns country from IP integers

Examples

Run this code
IP.integer <- IP_integer(IPs)
head(IP_lookup(IP.integer))

Run the code above in your browser using DataLab