Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

segment an IP Address generating /8, /16 and /24

$
0
0

Via R and using RStudio, I'm trying to segment an ip address (eg.: 10.10.10.7) and generate a /8>/16>/24>/32.

Edit: My input is a list with +/- 100 IPs and have repeated IPs. The output I want would be a single json, xml, or dataframe with masking segmentation.

Eg.:

10.0.0.0
----10.10.0.0
--------10.10.10.0
------------10.10.10.7
--------10.10.20.0
------------10.10.20.7

What I've been able to do so far is separate each one into a different dataframe.

I would like to do everything in "one" json or xml or dataframe.

It would be possible? Thanks in advance for the help !!


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>