Learn R Programming

phylosim (version 3.0.5)

getSites.Sequence: Get the list of the Site object aggregated in a Sequence object

Description

Get the list of the Site object aggregated in a Sequence object. Warning: there is no setSites method!

Usage

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

Arguments

this

A Sequence object.

...

Not used.

Value

A list of Site objects.

See Also

For more information see Sequence.

Examples

Run this code
# NOT RUN {
	# create a sequence object
	s<-Sequence(alphabets=list(NucleotideAlphabet()),string="AATTGCCC")
	# get the list of aggregated Site objects
	getSites(s)
	# get Site objects via virtual field
	s$sites
 
# }

Run the code above in your browser using DataLab