Description Usage Arguments Value Examples
View source: R/create_outputs.R
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'.
1 | kb_distance(pair_graph)
|
pair_graph |
A tidygraph object of CRAN authors/packages created with
|
A single numeric value
1 2 3 4 5 | ## Not run:
separation <- kb_distance(pair_graph)
print(separation)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.