[R] Need some help with data-wrangling in R

Amit Govil @mit@c@03 @ending from gm@il@com
Fri Aug 24 18:34:29 CEST 2018


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]]



More information about the R-help mailing list