BlockBySubstr: Block by substrings

Description Usage Arguments Value Examples

View source: R/blocking.R

Description

Block by substrings of any length of multiple variables

Usage

1
BlockBySubstr(records, var.names, n.chars = NULL)

Arguments

records

Data Frame containing records to be linked

var.names

Vector of strings of variables you want to block by

n.chars

Vector of number of the characters you want to compare, respective to var.names

Value

A list with the elements

blocks

vector of strings corresponding to the blocks

factors

vector of integers corresponding to the blocks

Examples

1
2
3
BlockBySubstr(iris, "Species") #identifies 2 blocks
BlockBySubstr(iris, "Species", 2) #identifies 3 blocks
BlockBySubstr(iris, c("Species", "Sepal.Length"), c(2,1)) #identifies 3 blocks

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