Learn R Programming

reutils (version 0.1.1)

linkset: linkset

Description

Retrieve a linkset from an elink object.

Usage

linkset(x, linkname = NULL, ...)

## S3 method for class 'entrez_linkset': linkset(x, linkname = NULL, ...)

## S3 method for class 'elink': linkset(x, linkname = NULL, ...)

Arguments

x
An elink object.
linkname
(optional) Name of the Entrez link to retrieve. Every link in Entrez is given a name of the form dbFrom_dbTo_subset. If NULL, all available links are retrieved from the object.
...
Further arguments passed on to methods.

Value

  • A list.

Examples

Run this code
## Find related articles to PMID 20210808 and xtract linked UIDs from the
## "pubmed" to "pubmed_reviews" link
x <- elink("20210808", dbFrom="pubmed", dbTo="pubmed", cmd="neighbor_score")
linkset(x, "pubmed_pubmed_reviews")

Run the code above in your browser using DataLab