rolling_join: Emulate a rolling join

rolling_joinR Documentation

Emulate a rolling join

Description

Emulate a rolling join

Usage

rolling_join(x, y, by, roll = Inf, allow.cartesian = TRUE, ...)

Arguments

x, y

tbls to join

by

a character vector of columns to join by. The last column will be rolled.

roll

Inf to roll forward; -Inf to roll backwards.

...

other parameters passed on to methods

Note

Uses data.table under the hood. See [.data.table for details.


BAAQMD/tbltools documentation built on Feb. 29, 2024, 5:45 a.m.