RecordLinkage (version 0.4-11)

subset: Subset operator for record linkage objects

Description

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

Usage

# S3 method for RecLinkData
[(x, i)
  # S3 method for RecLinkResult
[(x, i)
  # S3 method for RLBigData
[(x, i)
  # S3 method for RLResult
[(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
# NOT RUN {
## 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