addVars: addVars

Description Usage Arguments Value Examples

View source: R/addVars.R

Description

Adds further variables for inspection to the match without any check.

Usage

1

Arguments

match

list structure with possibly matched observations

data

list of data frames

...

named list of variables (one for each data frame)

Value

list structure with possibly matched observations with added variables

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
set.seed(0)
# create two data sets which consists of
# 200 obs. only in t1, 200 obs. in t1 and t2 and
# 100 obs. only in t2
n <- list(c(200, 1), c(200, 1, 2), c(100, 2))
x <- generateTestData(n)
#
match <- findMatch(x, c('code', 'code'))
match <- addVars(match, x, birthday=c('birthday', 'birthday'))
head(match)
summary(match)

sigbertklinke/findMatch documentation built on July 12, 2019, 9:22 a.m.