RMendeley (version 1.2)

subset_by_author: subset search results by matching author

Description

get the ids of all the entries where the author's surname and forename match the given regular expressions

Usage

subset_by_author(x, surname, forename)

Arguments

x
the return of any search function, such as 'authored' or 'tagged'
surname
the surname, will attempt partial matching
forename
the author's first name, will attempt partial matching

Value

a vector indicating where a (partial) match of both first and last name has been successful

Examples

Run this code
## Not run: 
# dakos <- authored('V Dakos')
# m <- subset_by_author(dakos, 'V', 'Dakos')
# unique(show_titles(dakos[m]))
# ## End(Not run)

Run the code above in your browser using DataCamp Workspace