getCitationCounts: Counts the number of citations for each target ID.

Description Usage Arguments Details Value See Also Examples

View source: R/getCitationCounts.R

Description

'getCitationCounts' counts the number of citations for each target ID in an edge list

Usage

1

Arguments

e

an edge list, as obtained from 'generateEdgeList'

Details

The edge list 'e' must have a 'Target' column. The number of citations for each 'Target' are counted. All citations per 'Target' are assumed to be unique.

Value

A tibble with one column for target PMIDS and one column, 'n', containing the corresponding citation frequencies

See Also

generateEdgeList for generating an edge list

Examples

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

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