summary.cranly_network | R Documentation |

Compute a range of package directives and collaboration network statistics

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

`object` |
a |

`advanced` |
logical. If |

`...` |
currently not used' |

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_collaboratorseigen_centrality (advanced). the eigenvector centrality score of the author in the author network; as computed by

`igraph::eigen_centrality()`

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.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.