join_as_of: Wrapper for data.table to perform a join as of

Description Usage Arguments

View source: R/join_as_of.R

Description

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.

Usage

1
2
join_as_of(left_df, right_df, on, left_time, right_time,
  direction = "forward")

Arguments

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'


Beachnad/dbr documentation built on Nov. 6, 2019, 8:07 p.m.