linkset {reutils}R Documentation

linkset

Description

Retrieve a linkset from an elink object.

Usage

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

## S4 method for signature 'entrez_linkset'
linkset(x, linkname = NULL, ...)

## S4 method for signature '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.

Methods (by class)

Examples

## Not run: 
## 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")

## End(Not run)

[Package reutils version 0.2.3 Index]