kb_distance: The Degree Of Separation Between Named Authors

Description Usage Arguments Value Examples

View source: R/create_outputs.R

Description

Returns a numeric value that represents the degrees of separation between the two named authors that were provided to kevinbacran::kb_pair(). This value is the number of edges, or packages, required to link those two authors by the shortest route. The value is analagous to the 'Kevin Bacon Number' or 'Erdos Number'.

Usage

1
kb_distance(pair_graph)

Arguments

pair_graph

A tidygraph object of CRAN authors/packages created with kb_pair()

Value

A single numeric value

Examples

1
2
3
4
5
## Not run: 
separation <- kb_distance(pair_graph)
print(separation)

## End(Not run)

matt-dray/kevinbacran documentation built on Dec. 15, 2019, 12:37 a.m.