R: Version of the address space

is_ipv6 {ipaddress} | R Documentation

## Version of the address space

### Description

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

### See Also

`max_prefix_length()`

### Examples

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

    is_ipv4(ip)

    is_ipv6(ip)

[Package ipaddress version 0.5.2 Index]