Skip to contents

Check if an object is an ip_address, ip_network or ip_interface vector.

Usage

is_ip_address(x)

is_ip_interface(x)

is_ip_network(x)

Arguments

x

An object to test

Value

A logical scalar

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