allIdentical: allIdentical

Description Usage Arguments Value Examples

View source: R/allIdentical.R

Description

Increases each Levenshtein distances by one if variable entries do not match

Usage

1

Arguments

match

match structure

data

list of data frames

...

named list of variables (one for each data frame)

Value

returns a modified match

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
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'))
summary(match)
match <- allIdentical(match, x, sex=c('sex', 'sex'))
summary(match)
## Not run: 
# with %>% operator
library('magrittr')
match <- findMatch(x, c('code', 'code')) %>%
         allIdentical(x, sex=c('sex', 'sex'))

## End(Not run)

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