dt_merge: Use data.table merge routines to join two tables

Description Usage Arguments Value See Also Examples

View source: R/dtplyr.R

Description

Coerce the first input to a data.table, and then hand off to the higher performance merge routine.

Usage

1

Arguments

df

An R object that can be coerced to a data.table

...

Additional arguments for merge

Value

data.table

See Also

merge

Examples

1
2
3
4
lh <- data.frame(a = 1:5, b = letters[1:5])
rh <- data.frame(a = 2:4, c = letters[24:26])
dt_merge(lh, rh)
lh %>% dt_merge(rh)

mcskinner/dtplyr documentation built on Nov. 4, 2019, 6:23 p.m.