R: Subset operator for record linkage objects

subset {RecordLinkage} | R Documentation

## 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]
      ## S3 method for class 'RLBigData'
    x[i]
      ## S3 method for class 'RLResult'
    x[i]

### Arguments

`x` | The object which to index.
`i` | Indices of pairs to include in the subset.

### Value

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

### Author(s)

Andreas Borg, Murat Sariyar

### Examples

    ## 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]

[Package RecordLinkage version 0.4-12.2 Index]