ip_to_binary | R Documentation |
Encode or decode an ip_address
as a binary bit string.
ip_to_binary(x)
binary_to_ip(x)
x |
|
The bits are stored in network order (also known as big-endian order), which is part of the IP standard.
IPv4 addresses use 32 bits, IPv6 addresses use 128 bits, and missing values
are encoded as NA
.
ip_to_binary()
: A character vector
binary_to_ip()
: An ip_address
vector
Other address representations:
ip_to_bytes()
,
ip_to_hex()
,
ip_to_integer()
x <- ip_address(c("192.168.0.1", "2001:db8::8a2e:370:7334", NA))
ip_to_binary(x)
binary_to_ip(ip_to_binary(x))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.