Learn R Programming

phylosim (version 3.0.5)

getAlignmentLength.PhyloSim: Get the alignment length from a PhyloSim object

Description

Get the alignment length from a PhyloSim object.

This method retruns the number of columns in the alignment stored in the PhyloSim object.

Usage

# S3 method for PhyloSim
getAlignmentLength(this, ...)

Arguments

this

A PhyloSim object.

...

Not used.

Value

A numeric vector of length one.

See Also

For more information see PhyloSim.

Examples

Run this code
# NOT RUN {
	# create a PhyloSim object and run a simulation:
	sim<-Simulate(
                     PhyloSim(phy=rcoal(3),
                     root=NucleotideSequence(string="ATGC", proc=list(list(JC69())) ) )
             )
	# get the alignment length
	getAlignmentLength(sim)
 
# }

Run the code above in your browser using DataLab