subset_by_author: subset search results by matching author

Description Usage Arguments Value Examples

View source: R/utilities.R

Description

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

Usage

1
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

1
2
3
4
5
6
## Not run: 
dakos <- authored('V Dakos')
m <- subset_by_author(dakos, 'V', 'Dakos')
unique(show_titles(dakos[m]))

## End(Not run)

ropensci/RMendeley documentation built on May 16, 2018, 6:57 a.m.