Description Usage Arguments Details Value See Also Examples
View source: R/generateEdgeList.R
'generateEdgeList' generates the edge list for results from 'get_pmc_cited_in'
1 | generateEdgeList(elink)
|
elink |
elink results, as obtained from 'get_pmc_cited_in' (see 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.
An edge list (data.frame) with one column for target PMIDS and one column for source PMIDS.
get_pmc_cited_in
for obtaining elink citation results
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.