searchelife: Make an eLife API call.

View source: R/searchelife.r

searchelifeR Documentation

Make an eLife API call.

Description

Make an eLife API call.

Usage

searchelife(terms, term2 = "or", searchin = NULL, boolean, give = "doi")

Arguments

terms

Search terms.

term2

or, and, etc.

searchin

what area to search in, see examples

boolean

what boolean to use, one of contain, matches, ...

give

What to give back as the result. For now just doi

Examples

## Not run: 
# Simpler queries
searchelife(terms="Cell biology", searchin="subject_area", boolean="contains")
searchelife(terms="hormone", searchin="article_title", boolean="matches")
searchelife(terms="hormone", searchin="abstract", boolean="matches")
searchelife(terms="hormone", searchin="article_title", boolean="matches")

# more complicated queries
searchelife(terms="hormone", term2="or", searchin=c("article_title","abstract"), boolean="matches")

## End(Not run)

ropensci/elife documentation built on May 18, 2022, 9:54 a.m.