get.tree.weights: Get tree weights

Description Usage Arguments Value Author(s)

Description

Read the tree weights from a nexus file or text. It looks within the comments before each tree string for the weights.

Usage

1
2
3
4
get.tree.weights(finput, 
	text = NULL, 
	starters = c("&W", "&lnP"), 
	splitchar = "( |=)")

Arguments

finput

A file to be read in

text

Alternatively, send it text itself.

starters

The character pattern which indicates the start of the weight (within a comment)

splitchar

The character pattern which separates the 'starters' from the weights themselves

Value

Returns a numeric vector of the weights (if any are avialable).

Author(s)

J. Conrad Stack


phyext documentation built on May 2, 2019, 5:19 p.m.