BlockInPasses: Block a record linkage dataset in passes

Description Usage Arguments Value Examples

View source: R/blocking.R

Description

Block a record linkage dataset in passes of different blocking schemes

Usage

1
BlockInPasses(records, pass.structure, verbose = FALSE)

Arguments

records

a data frame containing the records to be matched

pass.structure

a list containing a matrix for each pass where the first column of the matrix contains the variables to block on and the second column contains the number of characters to use (NA will use the entire variable)

Value

A data frame containing the ids of records we will compare and the blocking scheme used to choose them

Examples

1
2
3
4
5
6
BlockInPasses(RLdata10000, list(matrix(c("fname_c1", "lname_c1", NA, NA), ncol = 2),
                                matrix(c("fname_c1", "by", NA, NA), ncol = 2),
                                matrix(c("fname_c1", "lname_c1", 3, 4), ncol = 2),
                                matrix(c("lname_c1", NA), ncol = 2)))

BlockInPasses(RLdata500, list(matrix(c("fname_c1", "lname_c1", "by", 1, 2, NA), ncol = 2)))

kaylafrisoli/ActiveRL documentation built on May 20, 2019, 7:53 a.m.