timetable

Methods

Method Reference: timetable.innerjoin

timetable: ttC = innerjoin (ttL, tblR)
timetable: ttC = innerjoin (ttL, tblR, Name, Value)
timetable: [ttC, iL, iR] = innerjoin (…)

Join a timetable with another tabular object, keeping matched rows.

ttC = innerjoin (ttL, tblR) returns a timetable holding one row for every pair of rows of ttL and tblR whose keys match, in key order. Each row carries the row time of the row of ttL it came from, so a key matched more than once repeats its row time and the result is generally irregular.

With no key named, two timetables join on their row times; a timetable and a table have no key in common unless one is named, since the row times are not a variable.

[ttC, iL, iR] = innerjoin (…) also returns the rows of ttL and of tblR each row came from.

The following Name/Value pairs are accepted:

'Keys'
The variables to match on, named on both sides. The row dimension name names the row times.
'LeftKeys', 'RightKeys'
The variables to match on, named separately for each side and given together.
'LeftVariables', 'RightVariables'
The variables each side contributes. By default the left contributes all of its own and the right all but its keys.

Where an operand is an eventtable, or carries one on its Events property, the result is an event table too and the operands’ event tables are merged: an outer join keyed on the event times and every variable the two share, ordered by those keys. The three properties saying which variables describe the events must agree, and the operation is refused where they do not.

Source Code: timetable