Convert a numeric matrix containing flight counts between ariports to a data frame containing a list of connections.
flightCountMatrixToConnectionList(nFlightsPerConnection, directed = TRUE)
A data frame with columns departureAirport
, arrivalAirport
, nFlights
.
Each row represents one connection with >=1 flights in the input matrix.
A square, numeric matrix with identical column- and row-names. Each entry represents the number of flights from the airport indexing the row to the airport indexing the column in some arbitrary time period.
Logical scalar. Whether flights A->B and B->A should be considered separately.