Merge two data tables by StoX keys

mergeByStoxKeys(
  x,
  y,
  StoxDataType,
  toMergeFromY = NULL,
  replace = FALSE,
  unique = TRUE,
  ...
)

Arguments

x, y

Data tables of class data.table.

StoxDataType

Input data type. Text string of StoxBiotic or StoxAcoustic.

toMergeFromY

Specify key columns from y. NULL means all similarly named columns from x and y will be merged. Default to NULL.

replace

Whether to replace the variables in the target. Default to FALSE.

unique

Logical: If TRUE (default) make the tables unique after merging.

...

Extra parameters that will be passed into merge.

Value

A merged data table.