Learn R Programming

skynet (version 1.0.1)

make.netUnd: Undirected Network

Description

Generates Undirected Network with an iGraph object and a Data Frame.

Usage

make.netUnd(x, disp = FALSE, cap = FALSE, merge = TRUE, alpha = 0.003,
  pct = 10, carrier = FALSE, metro = FALSE)

Arguments

x

Data frame

disp

Uses the Serrano's disparity filter (https://en.wikipedia.org/wiki/Disparity_filter_algorithm_of_weighted_network) to extract the backbone of the network.

cap

Filters original data based on the edge weight.

merge

When set to FALSE, it keeps parallel edges instead of collapsing them and summing their weights.

alpha

Argument for disparity filter.

pct

Argument for cap filter. Value should be imput as percentage.

carrier

Groups data per carrier and OD

metro

Groups data by metropolitan area

Examples

Run this code
# NOT RUN {
make.netUnd(OD_Sample)

# Apply Disparity Filter
make.netUnd(OD_Sample, disp = TRUE, alpha = 0.05)

# Apply Percentage Cap
make.netUnd(OD_Sample, cap = TRUE, pct = 20)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab