Smerge: Simple merging of data frames

View source: R/hammock.R

SmergeR Documentation

Simple merging of data frames

Description

Merges two data frame in a simple and safe way. The result will have all the rows from the first data frame exactly in the same order. The new rows from the second data frame are added to the end.

Usage

Smerge(x, y, by, finally = data.frame, unrowname = TRUE, ...)

Arguments

x

a data frame

y

a data frame

by

character: name of the variable to be used for merging

finally

function to be applied to the two data frames after they're made to match

unrowname

logical: delete row names?

...

parameters to be passed to 'finally'

Value

the 2 data frames made to match row by row, combined as specified by 'finally'


lebatsnok/hammock documentation built on Dec. 2, 2022, 6:25 a.m.