delink | R Documentation |
Unlink records from an episode (epid
), record group (pid
) or pane (pane
) object.
delink(x, lgk, ...)
## S3 method for class 'epid'
delink(x, lgk, ...)
## S3 method for class 'pane'
delink(x, lgk, ...)
## S3 method for class 'pid'
delink(x, lgk, ...)
x |
[ |
lgk |
|
... |
Other arguments. |
epid; pid; pane
ep <- episodes(1:8)
unlinked_ep <- delink(ep, ep@sn %in% c(3, 8))
ep; unlinked_ep
pn <- partitions(1:8, length.out = 2, separate = TRUE)
unlinked_pn <- delink(pn, pn@.Data == 5)
pn; unlinked_pn
pd <- links(list(c(1, 1, 1, NA, NA),
c(NA, NA, 2, 2, 2)))
unlinked_pd <- delink(pd, pd@pid_cri == 1)
pd; unlinked_pd
# A warning is given if an index record is unlinked as this will lead to seemly impossible links.
ep2 <- episodes(1:8, 2, episode_type = "rolling")
unlinked_ep2 <- delink(ep2, ep2@sn %in% c(3, 5))
schema(ep2, custom_label = decode(ep2@case_nm), seed = 2)
schema(unlinked_ep2, custom_label = decode(unlinked_ep2@case_nm), seed = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.