merge_pairs: A Function to Merge Pairs

Description Usage Arguments Examples

View source: R/merge_pairs.R

Description

This function allows you to merge data based pairs of IDs that can be in either order

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
merge_pairs(
  x,
  y,
  xID1,
  xID2,
  yID1 = xID1,
  yID2 = xID2,
  all.x = TRUE,
  all.y = FALSE
)

Arguments

x

a matrix or dataframe

y

a matrix or dataframe

xID1, xID2, yID1, yID2

specifications of the columns used for merging

all.x, all.y

logical, see merge function for details

Examples

1

vjf2/SocGen documentation built on April 24, 2021, 10:59 a.m.