View source: R/converter-related-to.R
related_to | R Documentation |
For an existing disco engine list definition, get relations of those entities. Not entering any relationship type codes results in finding all relations (brothers, sisters, colleagues, spouses, etc.).
related_to(savedlist, ..., comment = NULL)
savedlist |
A discoveryengine definition |
... |
Relationship type codes ( |
Many relationship types in CADS have multiple codes, to represent each side of the relationship type. For instance, "Mother" is encoded by both "SM" (presumably for "Son-Mother") and "DM" ("Daughter-Mother"). This can lead to confusion and frustration, so be sure that you're including all relevant codes. You can do so by using synonym lookup or just using synonyms in your definition (see examples).
parent_of
, child_of
## say we want to identify siblings of founders
## start by identifying founders, via the founders pledge
founder = has_affiliation(founders_pledge)
## brother and sister each have two different codes (see details above)
founder_sibling = related_to(founder, brother, sister)
display(founder_sibling)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.