score_simsum | R Documentation |
Score pairs by summing the similarity vectors
score_simsum(pairs, var = "simsum", by, add = TRUE, na_value = 0, ...)
pairs |
a |
var |
a character vector of length 1 with the name of the variable that will be created. |
by |
a character vector with the column names from |
add |
add the variable to the |
na_value |
the value to use for missing values |
... |
passed on to other methods. |
The scores are calculated by summing the columns given by by
. Missing
values are counted as zeros.
When add = TRUE
the original pairs
object is returned with the
column given by var
added to it. Otherwise a vector with scores is
returned.
data("linkexample1", "linkexample2") pairs <- pair_blocking(linkexample1, linkexample2, "postcode") pairs <- compare_pairs(pairs, c("lastname", "firstname", "address", "sex")) pairs <- score_simsum(pairs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.