joinDataTables {panelaggregation} | R Documentation |
This function joins two data.table objects, given a common key, which can have different names in the two tables. In the latter case, the sequence of the names is crucial. Make sure that the key columns match exactly.
joinDataTables(dt_1, dt_2, key_1, key_2 = key_1)
dt_1 |
first data.table |
dt_2 |
second data.table |
key_1 |
character vector of key columns for first data.table |
key_2 |
character vector of key columns for second data.table |
joined data.table
Matthias Bannert, Gabriel Bucur