Learn R Programming

RecordLinkage (version 0.3-2)

subset: Subset operator for record linkage objects

Description

Extracts a subset of a "RecLinkData" or "RecLinkResult" object.

Usage

## S3 method for class 'RecLinkData':
[(x, i)

  ## S3 method for class 'RecLinkResult':
[(x, i)

Arguments

x
The object which to index.
i
Indeces of pairs to include in the subset.

Value

  • A copy of x with only the pairs with indices specified by x.

Examples

Run this code
## Samples a subset of pairs

data(RLdata500)
rpairs <- compare.dedup(RLdata500, identity = identity.RLdata500,
  blockfld = list(1,3,5,6,7))
nPairs <- nrow(rpairs$pairs)
s <- sample(nPairs, nPairs / 2)
samp <- rpairs[s]

Run the code above in your browser using DataLab