Learn R Programming

phylosim (version 3.0.5)

getAncestral.Site: Get the ancestral object of a Site object

Description

Get the ancestral object of a Site object.

Usage

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

Arguments

this

A Site object.

...

Not used.

Value

A Site object, a Process object or NA.

See Also

For more information see Site.

Examples

Run this code
# NOT RUN {
	a<-Alphabet();
	# create some site object
	s1<-Site(alphabet=a)
	s2<-Site(ancestral=s1, alphabet=a)
	# get ancestral objects
	getAncestral(s1)
	s2$ancestral
 
# }

Run the code above in your browser using DataLab