is.tip.PhyloSim: Check if a node is a tip

Description Usage Arguments Value Author(s) See Also Examples

Description

Check if a node is a tip.

Usage

1
2
## S3 method for class 'PhyloSim'
is.tip(this, node=NA, ...)

Arguments

this

A PhyloSim object.

node

A node identifier (integer vector of length one).

...

Not used.

Value

TRUE or FALSE

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see PhyloSim.

Examples

1
2
3
4
5
6
7
	# create a PhyloSim object
	sim<-PhyloSim(phylo=rcoal(5));
	# check if node 4 is a tip
	is.tip(sim,4)
	# check if node 6 is a tip
	is.tip(sim,6)
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.