Version of the address space
Arguments
- x
An
ip_address
orip_network
vector
Examples
ip <- ip_address(c("192.168.0.1", "2001:db8::7334"))
is_ipv4(ip)
#> [1] TRUE FALSE
is_ipv6(ip)
#> [1] FALSE TRUE
Version of the address space
An ip_address
or ip_network
vector
ip <- ip_address(c("192.168.0.1", "2001:db8::7334"))
is_ipv4(ip)
#> [1] TRUE FALSE
is_ipv6(ip)
#> [1] FALSE TRUE