Learn R Programming

ipaddress (version 1.0.2)

ip_cast: Cast to IP vector

Description

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)

Value

  • as_ip_address(): An ip_address vector

  • as_ip_network(): An ip_network vector

  • as_ip_interface(): An ip_interface vector

Arguments

x

An object to cast

Examples

Run this code
as_ip_address(ip_interface("192.168.0.1/10"))

as_ip_network(ip_interface("192.168.0.1/10"))

Run the code above in your browser using DataLab