distcalc | R Documentation |
distcalc
calculates string distances and numeric distances
distcalc(
dat,
character_variables = c("mlast", "mfirst", "wfirst", "minitials", "winitials", "mprof"),
numeric_variables = c("year")
)
dat |
a dataset. |
character_variables |
The names of the character variables, without the suffixes. Set to a length zero vector if no variables are to be used ( |
numeric_variables |
The names of the numeric variables, without the suffixes. Set to a length zero vector if no variables are to be used ( |
the dataset with the necessary distances to predict links. Note that reassignment of the data.table is not necessary. The original dataset is modified in place
d1 = data.table::data.table(mlast = c("jong", "smid"), persid = c(1:2))
d2 = data.table::data.table(mlast = c("jongh", "jong", "smit"), persid = c(1:3))
d1d2cnd = candidates(d1, d2)
distcalc(d1d2cnd, character_variables = "mlast", numeric_variables = c())
d1d2cnd
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.