Learn R Programming

IPtoCountry (version 0.0.1)

IP_country: Convert IP address to country name

Description

Convert IP address to country name

Usage

IP_country(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.db1

Value

Returns a factor vector of country names corresponding to IP.address

Examples

Run this code
IP_country(IPs)

Run the code above in your browser using DataLab