Learn R Programming

bstrl (version 1.0.2)

alllinks: Return a list of all linked pairs (directly or transitively)

Description

Return a list of all linked pairs (directly or transitively)

Usage

alllinks(sl, idx = c("global", "local"))

Value

A list with two (global) or four (local) members, defining linked pairs of records. If 'global' indices, these members are called 'idx1' and 'idx2', where corresponding entries are the global indices of matched pairs of records. If 'local' indices, these members are called 'file1', 'record1', 'file2', and 'record2', where corresponding entries are the file number and record number within the file of matched pairs of records.

Arguments

sl

A streaming link object

idx

Whether to use global (default) or local indices

Examples

Run this code
data(geco_small_result)
samples <- extractlinks(geco_small_result)
# List all linked pairs of records in the 42nd posterior sample
alllinks(samples[[42]], idx="global")
alllinks(samples[[42]], idx="local")

Run the code above in your browser using DataLab