View source: R/compare_pairs.R
compare_pairs | R Documentation |
Compare all pairs of records
compare_pairs(pairs, by, comparators = list(default_comparator), x, y, default_comparator = identical(), overwrite = FALSE)
pairs |
a |
by |
variables from |
comparators |
a names list of comparator functions,
for the named variables the given functions will be used to compare the
records. For the remaining variables the |
x |
the first |
y |
the second |
default_comparator |
the default comparison function. |
overwrite |
overwrite exiting variables in |
Returns the pairs
object with a column added for each variable in
by
. The value is the column is given by the return value of the
corresponding comparison function.
data("linkexample1", "linkexample2") pairs <- pair_blocking(linkexample1, linkexample2, "postcode") pairs <- compare_pairs(pairs, c("lastname", "firstname", "address", "sex"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.