powered by
Given a vector of networks, this returns the minimal set of networks required to represent the same range of addresses.
collapse_networks(network)
An ip_network vector (potentially shorter than the input)
ip_network
An ip_network vector
exclude_networks()
collapse_networks(ip_network(c("192.168.0.0/24", "192.168.1.0/24")))
Run the code above in your browser using DataLab