from_to_format
reformats the data to the "from linkID to linkID" structure.
from_to_format(data)
A data frame of trips and their road level travel information, formatted as trips
, see trips
or data(trips); View(trips)
.
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.
if (FALSE) {
data(trips)
from_to_format(trips)
}