Well, if the timestamps do not line up, you’ll have to round them before joining the tables. (probably you’ll need to play with the optimal rounding setup, e.g. it might be that rounding/binning to half-minutes might make sense)
You’ll need some processing steps. To start, I’d probably try to convert the date to a timestamp, and then use the Math Formula node for rounding, then join using the Joiner.
[Edit] Oh! There’s actually a node from @muthmann for that which should do exactly what you’re looking for:
thanks a lot, that node sounds perfect I have installed the NodePit für Knime 3.5, but i couldn’t find the Timestamp aligner in the Node Repository. Do you have a idea what the issue could be?
You’ll have to install the corresponding nodes (i.e. the Cyface Nodes) explicitly. The NodePit plugin provides “just” the search functionality on NodePit.com.
On the Timestamp Aligner page scroll down and you’ll find a link to the update site. Click the button beside the link and the installation process should start.
I just played with it, and it seems it is still under development. Because it did not assign to all times from the first table a time from the second table. The last row was skipped.
@Iris Sorry for the delay I was on holiday without internet access. Do you have some example data or a screenshot of what you mean by “skipped”. Then I could probably fix the issue you mentioned.
If both files have the same amount of records simply sort on the timestamp column (maybe not even needed if already sorted at least it looks that way) and then join on rowid (note: if you sort in knime you will need to create new rowids for both tables).
I did miss the “closest previous” terminology. So for some of my times there were no previous. I would guess the output is than a missing value and not a missing input row.