Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

collapse_networks

Collapse contiguous and overlapping networks


Description

Given a vector of networks, this returns the minimal set of networks required to represent the same range of addresses.

Usage

collapse_networks(network)

Arguments

network

An ip_network vector

Value

An ip_network vector (potentially shorter than the input)

See Also

Examples

collapse_networks(ip_network(c("192.168.0.0/24", "192.168.1.0/24")))

ipaddress

Tidy IP Addresses

v0.5.1
MIT + file LICENSE
Authors
David Hall [aut, cre] (<https://orcid.org/0000-0002-2193-0480>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.