Learn R Programming

phylosim (version 3.0.5)

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

Description

Check if a node is a tip.

Usage

# S3 method for 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

See Also

For more information see PhyloSim.

Examples

Run this code
# NOT RUN {
	# 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)
 
# }

Run the code above in your browser using DataLab