Package: ipaddress 1.0.2.9000

ipaddress: Data Analysis for IP Addresses and Networks

Classes and functions for working with IP (Internet Protocol) addresses and networks, inspired by the Python 'ipaddress' module. Offers full support for both IPv4 and IPv6 (Internet Protocol versions 4 and 6) address spaces. It is specifically designed to work well with the 'tidyverse'.

Authors:David Hall [aut, cre]

ipaddress_1.0.2.9000.tar.gz
ipaddress_1.0.2.9000.zip(r-4.5)ipaddress_1.0.2.9000.zip(r-4.4)ipaddress_1.0.2.9000.zip(r-4.3)
ipaddress_1.0.2.9000.tgz(r-4.4-x86_64)ipaddress_1.0.2.9000.tgz(r-4.4-arm64)ipaddress_1.0.2.9000.tgz(r-4.3-x86_64)ipaddress_1.0.2.9000.tgz(r-4.3-arm64)
ipaddress_1.0.2.9000.tar.gz(r-4.5-noble)ipaddress_1.0.2.9000.tar.gz(r-4.4-noble)
ipaddress.pdf |ipaddress.html
ipaddress/json (API)
NEWS

# Install 'ipaddress' in R:
install.packages('ipaddress', repos = c('https://davidchall.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/davidchall/ipaddress/issues

Uses libs:
  • c++– GNU Standard C++ Library v3
Datasets:

On CRAN:

cyberdata-analysisip-addressipv4ipv6vctrs

66 exports 31 stars 6.99 score 7 dependencies 2 dependents 26 scripts 435 downloads

Last updated 10 months agofrom:bf09db1c68. Checks:OK: 9. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 08 2024
R-4.5-win-x86_64OKSep 08 2024
R-4.5-linux-x86_64OKSep 08 2024
R-4.4-win-x86_64OKSep 08 2024
R-4.4-mac-x86_64OKSep 08 2024
R-4.4-mac-aarch64OKSep 08 2024
R-4.3-win-x86_64OKSep 08 2024
R-4.3-mac-x86_64OKSep 08 2024
R-4.3-mac-aarch64OKSep 08 2024

Exports:%<<%%>>%as_ip_addressas_ip_interfaceas_ip_networkbinary_to_ipbroadcast_addressbytes_to_ipcollapse_networkscommon_networkcountry_networksexclude_networksextract_6to4extract_ipv4_mappedextract_teredo_clientextract_teredo_serverhex_to_iphostmaskhostname_to_iphostname_to_ip_allhostsinteger_to_ipip_addressip_interfaceip_networkip_to_binaryip_to_bytesip_to_hexip_to_hostnameip_to_hostname_allip_to_integeris_6to4is_globalis_ip_addressis_ip_interfaceis_ip_networkis_ipv4is_ipv4_mappedis_ipv6is_link_localis_loopbackis_multicastis_privateis_reservedis_site_localis_subnetis_supernetis_teredois_unspecifiedis_withinis_within_anymax_prefix_lengthnetmasknetwork_addressnum_addressesoverlapsprefix_lengthreverse_pointersample_ipv4sample_ipv6sample_networksubnetssummarize_address_rangesupernetvec_arith.ip_addressvec_arith.ip_interface

Dependencies:AsioHeaderscligluelifecycleRcpprlangvctrs

Examples and Recipes

Rendered fromrecipes.Rmdusingknitr::rmarkdownon Sep 08 2024.

Last update: 2022-12-23
Started: 2022-12-23

IP Data

Rendered fromip-data.Rmdusingknitr::rmarkdownon Sep 08 2024.

Last update: 2022-12-23
Started: 2022-12-23

Readme and manuals

Help Manual

Help pageTopics
Network membership of addressesaddress_in_network is_within is_within_any
Collapse contiguous and overlapping networkscollapse_networks
Find the common network of two addressescommon_network
Country-level IP networkscountry_networks
Remove networks from othersexclude_networks
IPv4 address space allocationiana_ipv4
IPv6 address space allocationiana_ipv6
Vector of IP addressesip_address
Cast to IP vectoras_ip_address as_ip_interface as_ip_network ip_cast
Format IP vectorformat.ip_address format.ip_interface format.ip_network ip_format
Vector of IP interfacesip_interface ip_interface.default ip_interface.ip_address
Vector of IP networksip_network ip_network.default ip_network.ip_address
Operators for IP addresses%<<% %>>% ip_operators
Test for IP vectorip_test is_ip_address is_ip_interface is_ip_network
Represent address as binarybinary_to_ip ip_to_binary
Represent address as raw bytesbytes_to_ip ip_to_bytes
Represent address as hexadecimalhex_to_ip ip_to_hex
Translate address to/from hostnamehostname_to_ip hostname_to_ip_all ip_to_hostname ip_to_hostname_all
Represent address as integerinteger_to_ip ip_to_integer
IPv6 transition mechanismsextract_6to4 extract_ipv4_mapped extract_teredo_client extract_teredo_server ipv6-transition is_6to4 is_ipv4_mapped is_teredo
Version of the address spaceis_ipv4 is_ipv6
Reserved addressesis_global is_link_local is_loopback is_multicast is_private is_reserved is_site_local is_unspecified
Size of the address spacemax_prefix_length
Network maskhostmask hostmask.numeric netmask netmask.numeric prefix_length
Network membership of other networksis_subnet is_supernet network_in_network overlaps
Network sizebroadcast_address network_address network_size num_addresses
Reverse DNS pointerreverse_pointer
Sample random addressessample sample_ipv4 sample_ipv6 sample_network
List addresses within a networkhosts seq.ip_network sequence
List constituent networks of an address rangesummarize_address_range
Traverse the network hierarchysubnets supernet traverse_hierarchy