fitch2: Count parsimony changes

Description Usage Arguments Value

View source: R/fitch2.R

Description

Counts number of character state changes for a binary character using the Fitch parsimony algorithm

Usage

1
fitch2(x, phy, root.only = TRUE)

Arguments

x

A vector of character states in the set 0, 1, 3

phy

A phylogeny that inherits class phylo and extended-phylo.

root.only

A logical indicating whether or not to return the number of changes at the root node only (default) or all internal nodes

Value

An integer vector holding the number of parsimony-implied character state changes above the root node (optionally all internal nodes)


blueraleigh/pea.toolkits documentation built on Dec. 24, 2017, 3:20 p.m.