View source: R/select_threshold.R
select_threshold | R Documentation |
Select pairs for linkage using a threshold
select_threshold(pairs, threshold, weight, var = "select")
pairs |
a |
threshold |
the threshold to apply. Pairs with a score above the threshold are selected. |
weight |
name of the score/weight variable of the pairs. When not given
and |
var |
the name of the new variable to create in pairs. This will be a
logical variable with a value of |
Returns the pairs
with the variable given by var
added. This
is a logical variable indicating which pairs are selected a matches.
data("linkexample1", "linkexample2") pairs <- pair_blocking(linkexample1, linkexample2, "postcode") pairs <- compare_pairs(pairs, c("lastname", "firstname", "address", "sex")) pairs <- score_simsum(pairs) # Select pairs with a simsum > 5 as matches pairs <- select_threshold(pairs, 5)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.