Learn R Programming

phylosim (version 3.0.5)

getSequence.Site: Get the Sequence object associated with a given Site object

Description

Get the Sequence object associated with a given Site object.

Usage

# S3 method for Site
getSequence(this, ...)

Arguments

this

A Site object.

...

Not used.

Value

A Sequence object or NA.

See Also

For more information see Site.

Examples

Run this code
# NOT RUN {
	# create a site object
	s<-Site(sequence=Sequence())
	# get the associated Sequence object
	getSequence(s)
	# get the associated Sequence object via virtual field
	s$sequence

 
# }

Run the code above in your browser using DataLab