Description Usage Arguments Examples
This function takes a data.frame/table and a column name that indicates a column containing a combination of ip address and mask (e.g. '192.168.1.101/16') and splits this column into two separate columns. Returns a data.table.
1 | split_ip_network(dt, net_name)
|
dt: |
data.frame or data.table |
net_name: |
character indicating the name of the column containing the ip address and mask |
1 2 | fake_dt <- data.table::data.table(ip = c('192.168.1.101/16', '10.10.2.201/24'), b = 1:2)
split_ip_network(fake_dt, 'ip')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.