merge_identifiers | R Documentation |
Consolidate two group identifiers.
merge_ids(...)
## Default S3 method:
merge_ids(id1, id2, tie_sort = NULL, expand = TRUE, shrink = FALSE, ...)
## S3 method for class 'pid'
merge_ids(id1, id2, tie_sort = NULL, expand = TRUE, shrink = FALSE, ...)
## S3 method for class 'epid'
merge_ids(id1, id2, tie_sort = NULL, expand = TRUE, shrink = FALSE, ...)
## S3 method for class 'pane'
merge_ids(id1, id2, tie_sort = NULL, expand = TRUE, shrink = FALSE, ...)
... |
Other arguments |
id1 |
|
id2 |
|
tie_sort |
|
expand |
|
shrink |
|
Groups in id1
are expanded or shrunk by groups in id2
.
A unique group with only one record is considered a non-matching record.
Note that the expand
and shrink
features are not interchangeable.
The outcome when shrink
is TRUE
is not the same when expand
is FALSE
.
See Examples
.
links
; links_af_probabilistic
id1 <- rep(1, 5)
id2 <- c(2, 2, 3, 3, 3)
merge_ids(id1, id2, shrink = TRUE)
id1 <- c(rep(1, 3), 6, 7)
id2 <- c(2,2,3,3,3)
merge_ids(id1, id2, shrink = TRUE)
merge_ids(id1, id2, expand = FALSE)
id1 <- rep(1, 5)
id2 <- c(1:3, 4, 4)
merge_ids(id1, id2, shrink = TRUE)
merge_ids(id1, id2, expand= FALSE)
data(missing_staff_id)
dfr <- missing_staff_id
id1 <- links(dfr[[5]])
id2 <- links(dfr[[6]])
merge_ids(id1, id2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.