Learn R Programming

skynet (version 1.0.1)

fromto.stat: From To function

Description

Calculate edges weight from IATA Code

Usage

fromto.stat(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)
fromto.stat(netDir$gDir, "JFK", orig = "from")

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

Run the code above in your browser using DataLab