filterEdgeList: Edge list filtering.

Description Usage Arguments Details Value See Also Examples

View source: R/filterEdgeList.R

Description

'filterEdgeList' filters an edge list by citation threshold

Usage

1
filterEdgeList(e, count)

Arguments

e

an edge list, as obtained from 'generateEdgeList'

count

a threshold value for citation counts

Details

This function returns an edge list having target IDs with at least 'count' citations

Value

A list with the following objects: edgeList - the filtered edge list counts - a tibble with one column for target PMIDS and one column, 'n', containing the corresponding frequency of citations

See Also

generateEdgeList for generating an edge list, and getCitationCounts for counting citation frequencies

Examples

1
2
3
4
# generates an edge list for multiple articles
res <- get_pmc_cited_in(c(21876761, 311,29463753))
e <- generateEdgeList(res)
e2 <- filterEdgeList(e, 5)

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