getSetDiff: Get additions/removals

View source: R/compareTables.R

getSetDiffR Documentation

Get additions/removals

Description

Get only additions and removals from two data sets (data.table objects). The additions/removals are extracted as x vs y. This function assumes that the objects x and y don't share identical rows.

Usage

getSetDiff(x, y, referenceVars)

Arguments

x

A data.table object

y

A data.table object

referenceVars

character vector of the columns in the data that are the used as reference for the comparison.
If not specified, all columns present both in newData and oldData are considered.

Value

A data.table object with the additions/removals with respect of the comparison between x vs y.


clinUtils documentation built on Jan. 6, 2023, 5:29 p.m.