Learn R Programming

ipaddress (version 1.0.2)

ip_test: Test for IP vector

Description

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)

Value

A logical scalar

Arguments

x

An object to test

Examples

Run this code
is_ip_address(ip_address("192.168.0.1"))
is_ip_interface(ip_interface("192.168.0.1/10"))
is_ip_network(ip_network("192.168.0.0/24"))

Run the code above in your browser using DataLab