Given I find the syntax used by DT to be quite tedious to learn, this function abstracts the operation of performing a join as of leveraging the performance of DT.
1 2 | join_as_of(left_df, right_df, on, left_time, right_time,
direction = "forward")
|
left_df |
The left side of the join. Should be a data frame. |
right_df |
The right side of the join. Should be a data frame. |
on |
What column to join on. |
left_time |
The name of the column within left_dt to join as of. |
right_time |
The name of the column within right_df to join as of. |
direction |
Which direction to join as of. Should be 'forward', 'backward', or 'nearest' |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.