merge: Merge two tables

View source: R/merge.R

mergeR Documentation

Merge two tables

Description

Merge two tables using shared keys.

Usage

merge(x, y, by = NULL, all = FALSE, all.x = all, all.y = all,
  sort = FALSE, suffixes = c(".x", ".y"))

Arguments

x, y

Data frames or data tables to merge.

by

Optional character vector of join columns.

all, all.x, all.y

Controls for keeping unmatched rows.

sort

Whether to sort the result.

suffixes

Suffixes used for overlapping column names.

Value

A basetable containing the merged rows.


basetable documentation built on Sept. 18, 2026, 9:13 a.m.