Description Usage Arguments Value Examples
Many subject headings specify a relation to a term: not just "Joyce, James" but "compared to Joyce, James." For aggregating purposes, these relations can often be ignored. This function attempts to remove any number of these relational phrases found at the start of a term, leaving only the main terms. Subheadings (delimited by a colon) are also removed.
1 | strip_subject_relation(x, rels = getOption("mlaibr.relations"))
|
x |
character vector of headings |
rels |
character vector of regular expressions matching relation terms.
The anchor |
the headings with relation terms removed (hopefully)
1 2 3 4 | strip_subject_relation("sources in James, William (1842-1910)")
strip_subject_relation("compared to Wordsworth, William (1770-1850): 'Intimations of Immortality from Recollections of Early Childhood'")
strip_subject_relation("discusses theories of relationship to realism")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.