Learn R Programming

skynet (version 1.4.3)

from_to_stats: From To function

Description

Calculate edges weight from IATA Code

Usage

from_to_stats(x, y, orig)

Arguments

x

igraph object to query

y

origin airport IATA code

orig

"from" or "to" options

Examples

Run this code
# NOT RUN {
netDir <- make.netDir(OD_Sample)
from_to_stats(netDir$gDir, "JFK", orig = "from")

from_to_stats(netDir$gDir, "JFK", orig = "to")
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab