get_inspect_pairs function

Get a subset of pairs to inspect

Get a subset of pairs to inspect

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.

Returns

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.

  • Maintainer: Jan van der Laan
  • License: GPL-3
  • Last published: 2024-02-09