bx_extract: Extract data from search results

Description Usage Arguments Details Value Examples

View source: R/bx_extract.R

Description

Extract information about each paper in search results, returning author info, abstract and download metrics

Usage

1
bx_extract(bxso)

Arguments

bxso

Search results from bx_search().

Details

The metrics field will return a month by month data frame with abstract views and pdf downloads

Value

The output is an object of class biorxiv_paper. This object is a list where each item in the list is one of the papers found using bx_search(). Each of these items is itself a list with 2 items: authors and paper.

author

This item is again a list with two items. The first item is called 'names' and it is a vector of characters, where each element is the name and last name of one of the authors. The second item is called 'emails' and it is a character vector, where each element of this vector is the email address of one of the authors.

paper

This item is again a list with 5 items. The first item is called 'title' and it is a character vector of one element. The second item is called 'abstract' and it is a character vector of one element containing the whole abstract. The third item is called 'date' and it is a character vector of one element. The fourth item is called 'DOI' and it is a character vector of one element. The firth item is called 'fulltext_url' and it is a character vector of one element containing the full URL of the pdf.

Examples

1
2
bxEco <- bx_search("ecology",limit=1)
bxEcoData <- bx_extract(bxEco)

biorxivr documentation built on July 8, 2020, 6:06 p.m.