Learn R Programming

phylosim (version 3.0.5)

getLength.Sequence: Get the number of Site objects aggregated in a Sequence object

Description

Get the number of Site objects aggregated in a Sequence object.

Usage

# S3 method for Sequence
getLength(this, ...)

Arguments

this

A Sequence object.

...

Not used.

Value

An integer vector of length one.

See Also

For more information see Sequence.

Examples

Run this code
# NOT RUN {
	# create a Sequence object
	s<-Sequence(length=5)
	# get sequence length
	getLength(s)
	# get length via virtual field
	s$length
 
# }

Run the code above in your browser using DataLab