Methods for converting character vectors and ip_interface
vectors to
ip_address
and ip_network
vectors.
Value
as_ip_address()
: Anip_address
vectoras_ip_network()
: Anip_network
vectoras_ip_interface()
: Anip_interface
vector
Examples
as_ip_address(ip_interface("192.168.0.1/10"))
#> <ip_address[1]>
#> [1] 192.168.0.1
as_ip_network(ip_interface("192.168.0.1/10"))
#> <ip_network[1]>
#> [1] 192.128.0.0/10