Check if an object is an ip_address
, ip_network
or ip_interface
vector.
Examples
is_ip_address(ip_address("192.168.0.1"))
#> [1] TRUE
is_ip_interface(ip_interface("192.168.0.1/10"))
#> [1] TRUE
is_ip_network(ip_network("192.168.0.0/24"))
#> [1] TRUE