Skip to contents

Version of the address space

Usage

is_ipv4(x)

is_ipv6(x)

Arguments

x

An ip_address or ip_network vector

Value

A logical 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