generateEdgeList: Constructs edge lists from elink citation results.

Description Usage Arguments Details Value See Also Examples

View source: R/generateEdgeList.R

Description

'generateEdgeList' generates the edge list for results from 'get_pmc_cited_in'

Usage

1

Arguments

elink

elink results, as obtained from 'get_pmc_cited_in' (see details)

Details

'elink' must be one of the following: a list containing one elink object, with list name corresponding to target PMID; a list of elink objects, with names corresponding to target PMIDs, or a list of any combination of the above. These corresond to a single PMID, a single batch, and multiple batches, respectively.

Value

An edge list (data.frame) with one column for target PMIDS and one column for source PMIDS.

See Also

get_pmc_cited_in for obtaining elink citation results

Examples

1
2
3
4
5
6
7
# generate an edge list for a single article
res1 <- get_pmc_cited_in(21876761)
e2 <- generateEdgeList(res1)

# generate an edge list for multiple articles
res2 <- get_pmc_cited_in(c(21876761, 311,29463753), batchSize = 2)
e2 <- generateEdgeList(res2)

gdancik/pmc2nc documentation built on May 5, 2019, 7:09 a.m.