Encode or decode an ip_address as a hexadecimal string.
Usage
ip_to_hex(x)
hex_to_ip(x, is_ipv6 = NULL)
Value
ip_to_hex(): A character vector
hex_to_ip(): An ip_address vector
Arguments
x
ip_to_hex(): An ip_address vector
hex_to_ip(): A character vector containing hexadecimal strings
is_ipv6
A logical vector indicating whether to construct an IPv4 or
IPv6 address. If NULL (the default), then IPv4 is preferred but an IPv6
address is constructed when x is too large for the IPv4 address space.
See Also
Other address representations:
ip_to_binary(),
ip_to_bytes(),
ip_to_integer()