from_to_format reformats the data to the "from linkID to linkID" structure.

from_to_format(data)

Arguments

data

A data frame of trips and their road level travel information, formatted as trips, see trips or data(trips); View(trips).

Value

Returns a data frame with extra columns (linkID.from, linkID.to), and N representing the number of (i = linkID.from, j = linkID.to, k = timeBin) that are present in the dataset.

Examples

if (FALSE) {

data(trips)
from_to_format(trips)
}