Learn R Programming

ipaddress (version 1.0.2)

is_ipv6: Version of the address space

Description

Version of the address space

Usage

is_ipv4(x)

is_ipv6(x)

Value

A logical vector

Arguments

x

An ip_address or ip_network vector

See Also

max_prefix_length()

Examples

Run this code
ip <- ip_address(c("192.168.0.1", "2001:db8::7334"))

is_ipv4(ip)

is_ipv6(ip)

Run the code above in your browser using DataLab