powered by
Generates Directed Network with an iGraph object and a Data Frame.
make.netDir(x, disp = FALSE, cap = FALSE, alpha = 0.003, pct = 10, carrier = FALSE, metro = FALSE)
Data frame
Uses the Serrano's disparity filter (https://en.wikipedia.org/wiki/Disparity_filter_algorithm_of_weighted_network) to extract the backbone of the network.
Filters original data based on the edge weight.
Argument for disparity filter.
Argument for cap filter. Value should be imput as percentage.
Groups data per carrier and OD
Groups data by metropolitan area
# NOT RUN { make.netDir(OD_Sample) # Apply Disparity Filter make.netDir(OD_Sample, disp = TRUE, alpha = 0.05) # Apply Percentage Cap make.netDir(OD_Sample, cap = TRUE, pct = 20) # }
Run the code above in your browser using DataLab