View source: R/pair_blocking.R
| pair_blocking | R Documentation | 
Generates all combinations of records from x and y where the 
blocking variables are equal.
pair_blocking(x, y, blocking_var = NULL, large = TRUE, add_xy = TRUE, chunk_size = 1e+07)
x | 
 first   | 
y | 
 second   | 
blocking_var | 
 the variables defining the blocks or strata for which 
all pairs of   | 
large | 
 should the pairs be returned as a   | 
add_xy | 
 add   | 
chunk_size | 
 used when   | 
Generating (all) pairs of the records of two data sets, is usually the first step when linking the two data sets. However, this often results in a too large number of records. Therefore, blocking is usually applied.
When large is FALSE, a data.frame with two columns, 
x and y, is returned. Columns x and y are 
row numbers from data.frames x and y respectively. 
When large is TRUE, an object of type ldat is returned.
data("linkexample1", "linkexample2")
pairs <- pair_blocking(linkexample1, linkexample2, "postcode")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.