Learn R Programming

biorxivr (version 1.0.2)

bx_extract: Extract data from search results

Description

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

Usage

bx_extract(bxso)

Arguments

bxso

Search results from bx_search().

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.

Details

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

Examples

Run this code
# NOT RUN {
bxEco <- bx_search("ecology",limit=1)
bxEcoData <- bx_extract(bxEco)
# }

Run the code above in your browser using DataLab