Hi,

I have log data in which one of the columns have IP ranges and the next
column is corresponding ports. Eg:


IPRange Port
10.78.64.0-10.78.66.255 D, A, C

I need to expand the IPRange column into a list of network blocks till 3rd
octet:

IPRange IP Port
192.100.176.0-192.100.179.255 192.100.176.0/24 A, B, C
192.100.176.0-192.100.179.255 192.100.177.0/24 A, B, C
192.100.176.0-192.100.179.255 192.100.178.0/24 A, B, C
192.100.176.0-192.100.179.255 192.100.179.0/24 A, B, C

How do I do this data transformation in R?

Please assist.

Thanks
Amit

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to