View source: R/build_score_settings.R
build_score_settings | R Documentation |
build_score_settings
is a convenient way to make the proper list for the
score_settings
argument of merge_plus
Each vector in build_score_settings
should be the same length, and each position (first, second, third, etc.)
corresponds to one variable to score on.
build_score_settings(
score_var_x = NULL,
score_var_y = NULL,
score_var_both = NULL,
wgts = NULL,
score_type
)
score_var_x |
character vector. the variables from the 'x' dataset to score on |
score_var_y |
character vector. the variables from the 'y' dataset to score on |
score_var_both |
the variables from both datasets (shared names) to score on, before any prefixes are applied. |
wgts |
numeric vector. The weights for the linear sum of scores |
score_type |
Charcter vector. Options are "in", "indicator", "substr", "difference", "ratio", "stringdist". See the Multivar Matching Vignette for details. |
a list containing options for the 'score_settings' argument of merge_plus
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.