IP_integer: Convert IP address to IP integer

Description Usage Arguments Value Examples

View source: R/IP_country.R

Description

Convert IP address to IP integer

Usage

1
IP_integer(IP.address)

Arguments

IP.address

a character or factor vector of one or more IP addresses

Value

Returns a numeric vector of IP integers from IP.address. The coversion formula used here splits the string into four octets, multiplies the first three by 256^(4-n), and takes the sum of the four modified octets.

Examples

1

Example output

[1]  400269021 3560222745 2669060184 1743529831 2338397435 2101277531

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