get_inspect_pairs {reclin2}R Documentation

Get a subset of pairs to inspect

Description

Get a subset of pairs to inspect

Usage

get_inspect_pairs(
  pairs,
  variable,
  threshold,
  position = NULL,
  n = 11,
  x = attr(pairs, "x"),
  y = attr(pairs, "y")
)

Arguments

pairs

data.table with pairs.

variable

name of variable to base the selection on; should be a variable with the similarity score of the pairs.

threshold

the threshold around which to select pairs. Used when position is not given.

position

select pairs around this position (based on order of variable), e.g. position = 1 will select the pairs with the highest similarity score.

n

number of pairs to select. Pairs are selected symmetric around the theshold.

x

data.table with one half of the pairs.

y

data.table with the other half of the pairs.

Value

Returns a list with elements pairs with the selected pairs; x records from x corresponding to the pairs; y records from y corresponding to the pairs; position position of the selected pairs; index index of the pairs in pairs.


[Package reclin2 version 0.5.0 Index]