View source: R/streaming_link_object.R
islinked | R Documentation |
Return True/False whether the two record are coreferent
islinked(sl, file1, record1, file2, record2)
sl |
A streaming link object |
file1, record1 |
The file number and record number of the first record |
file2, record2 |
The file number and record number of the second record. Note that file2 must be greater than file1. |
A boolean value. True if these two records are linked within sl, False otherwise.
data(geco_small_result) samples <- extractlinks(geco_small_result) # Are record 9 in file 1 and record 7 in file 4 linked in the first posterior sample? islinked(samples[[1]], file1=1, record1=9, file2=4, record2=7) # In what proportion of posterior samples are record 9 in file 1 and record 7 in file 4 linked? mean(sapply(samples, islinked, file1=1, record1=9, file2=4, record2=7)) # In what proportion of posterior samples are record 8 in file 1 and record 1 in file 2 linked? mean(sapply(samples, islinked, file1=1, record1=8, file2=2, record2=1))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.