is_author: Detect author names among subject headings

Description Usage Arguments Details Value See Also Examples

Description

Given a vector of subject terms, determine which are (likely) author terms.

Usage

1

Arguments

x

character vector of subject terms

Details

The heuristic is simply to look for a (possibly open-ended) birth-death date range in the term. Note that this is highly imperfect, since books and periodicals often also have date ranges. I have not found an alternative to removing these by hand.

Value

logical vector indicating whether the corresponding element of x is an author term.

See Also

subjects_frame, subject_author

Examples

1
2
3
4
5
6
is_author("Joyce, James (1882-1941)")

is_author("South Asian literature")

# but N.B.
is_author("A la recherche du temps perdu (1913-1929)")

agoldst/mlaibr documentation built on May 10, 2019, 7:34 a.m.