| rollingmerge | R Documentation |
Join tables using a rolling match on the last key column.
rollingmerge(x, y, by, direction = c("backward", "forward", "nearest"),
tolerance = Inf)
x, y |
Data frames or data tables to join. |
by |
Character vector of join columns. The last column is treated as the rolling key. |
direction |
Rolling direction: backward, forward, or nearest. |
tolerance |
Maximum distance allowed for rolling matches. |
A basetable with rows from x joined to nearest matches in y.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.