centreOfMass: Computes the centre of mass of the tree

Description Usage Arguments Value

Description

The x coordinate of the centre of mass is defined as \frac{∑(m_ix_i)}{∑(m_i)} where m_i is the biomass of the i^{th} branch and x_i is the x coordinate of the i^{th} branch. y and z coordinates are similarly computed. The centre of mass computation excludes branches to be pruned (ie: those whose toBePruned value is set to TRUE).

Usage

1
centreOfMass(object)

Arguments

object

A data frame of class vectors

Value

A vector holding x, y, z coordinates of the centre of mass



Search within the treecm package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.