View source: R/address_ranges.R
summarize_address_range | R Documentation |
Given an address range, this returns the list of constituent networks.
If you know the address range matches the boundaries of a single network, it
might be preferable to use common_network()
. This returns an ip_network
vector instead of a list of ip_network
vectors.
summarize_address_range(address1, address2)
address1 |
An |
address2 |
An |
A list of ip_network
vectors
common_network()
# address range matches network boundaries
summarize_address_range(ip_address("192.168.0.0"), ip_address("192.168.0.15"))
# address range does not match network boundaries
summarize_address_range(ip_address("192.167.255.255"), ip_address("192.168.0.16"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.