subset_by_author: subset search results by matching author

View source: R/utilities.R

subset_by_authorR Documentation

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

## 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 18, 2022, 8:58 a.m.