Skip to main content

builtin_merge

Function builtin_merge 

Source
fn builtin_merge(
    args: &[RValue],
    named: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Merge two data frames by common columns (SQL-style join).

Performs an inner join by default. Use all, all.x, or all.y for outer joins. The by argument specifies join columns; if omitted, uses columns with names common to both data frames.

@param x first data frame @param y second data frame @param by character vector of shared column names to join on @param by.x character vector of column names in x to join on @param by.y character vector of column names in y to join on @param all logical; if TRUE, do a full outer join @param all.x logical; if TRUE, keep all rows from x (left join) @param all.y logical; if TRUE, keep all rows from y (right join) @return merged data frame