cranly (version 0.5.4)

summary.cranly_network: Compute a range of package directives and collaboration network statistics

Description

Compute a range of package directives and collaboration network statistics

Usage

# S3 method for cranly_network
summary(object, advanced = TRUE, ...)

Arguments

object

a cranly_network object.

advanced

logical. If FALSE (default) only basic network statistics are computed; if TRUE advanced statistics are also included in the computation (see Details).

...

currently not used`

Value

A data.frame of various statistics for the author collaboration network or the package directives network, depending on whether attr(object, "perspective") is "author" or "package", respectively. See Details for the current list of statistics returned.

Details

If attr(object, "perspective") is "package" then the resulting data.frame will have the following variables:

  • package. package name

  • n_authors (basic). number of authors for the package

  • n_imports (basic). number of packages the package imports

  • n_imported_by (basic). number of times the package is imported by other packages

  • n_suggests (basic). number of packages the package suggests

  • n_suggested_by (basic). number of times the package is suggested by other packages

  • n_depends (basic). number of packages the package depends on

  • n_depended_by (basic). number of packages that have the package as a dependency

  • n_enhances (basic). number of packages the package enhances

  • n_enhanced_by (basic). number of packages the package is enhanced by

  • n_linking_to (basic). number of packages the package links to

  • n_linked_by (basic). number of packages the package is linked by

  • betweenness (advanced). the package betweenness in the package network; as computed by igraph::betweenness()

  • closeness (advanced). the closeness centrality of the package in the package network; as computed by igraph::closeness()

  • page_rank (advanced). the Google PageRank of the package in the package network; as computed by igraph::page_rank()

  • degree (advanced). the degree of the package in the package network; as computed by igraph::degree()

  • eigen_centrality (advanced). the eigenvector centrality score of the package in the package network; as computed by igraph::eigen_centrality()

If attr(object, "perspective") is "author" then the resulting data.frame will have the following variables:

  • author. author name

  • n_packages (basic). number of packages the author appears in the package authors

  • n_collaborators (basic). total number of co-authors the author has in CRAN

  • betweenness (advanced). the author betweenness in the author network; as computed by igraph::betweenness()

  • closeness (advanced). the closeness centrality of the author in the author network; as computed by igraph::closeness()

  • page_rank (advanced). the Google PageRank of the author in the author network; as computed by igraph::page_rank()

  • degree (advanced). the degree of the author in the author network; as computed by igraph::degree(); same as n_collaborators

  • eigen_centrality (advanced). the eigenvector centrality score of the author in the author network; as computed by igraph::eigen_centrality()