Skip to contents

Methods for converting character vectors and ip_interface vectors to ip_address and ip_network vectors.

Usage

as_ip_address(x)

as_ip_interface(x)

as_ip_network(x)

Arguments

x

An object to cast

Value

Examples

as_ip_address(ip_interface("192.168.0.1/10"))
#> <ip_address[1]>
#> [1] 192.168.0.1

as_ip_network(ip_interface("192.168.0.1/10"))
#> <ip_network[1]>
#> [1] 192.128.0.0/10