IP_lookup: Match IP integer to country name

Description Usage Arguments Value Examples

View source: R/IP_country.R

Description

Match IP integer to country name

Usage

1
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

1
2
IP.integer <- IP_integer(IPs)
head(IP_lookup(IP.integer))

Example output

[1] "Sweden"      "Hungary"     "Switzerland" "China"       "Finland"    
[6] "Japan"      

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