computeNetworkStats: Network science-based statistics of a rooted phylo tree.

Description Usage Arguments Value See Also

View source: R/Drivers.R

Description

computeNetworksStats computes network science-based statistics of a rooted binary phylo tree.

Usage

1
2
computeNetworkStats(tree, weight = FALSE, meanpath = FALSE,
  maxOnly = TRUE, unitMean = FALSE)

Arguments

tree

A tree of class phylo. The tree should be binary and rooted; if it is not, it will be coerced into a rooted tree using root and/or binarized using multi2di.

weight

A logical scalar; if TRUE, the branch lengths are taken into account.

meanpath

A logical scalar; if TRUE, the Wiener index is normalized to the mean path.

maxOnly

A logical scalar; if TRUE, only the maximum value of each vector is returned.

unitMean

A logical scalar; if TRUE, the tree's branch lengths are scaled to unit mean beforehand.

Value

A named vector containing the 5 network science-based statistics.

See Also

Other drivers for computing summary statistics: computeBasicStats, computeLMStats, computeSpectralStats, rankDiscriminatoryStats


Leonardini/treeCentrality documentation built on April 7, 2020, 3:18 p.m.