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

Description Usage Arguments Value Author(s) See Also Examples

Description

Get the ancestral object of a Site object.

Usage

1
2
## S3 method for class 'Site'
getAncestral(this, ...)

Arguments

this

A Site object.

...

Not used.

Value

A Site object, a Process object or NA.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see Site.

Examples

1
2
3
4
5
6
7
8
	a<-Alphabet();
	# create some site object
	s1<-Site(alphabet=a)
	s2<-Site(ancestral=s1, alphabet=a)
	# get ancestral objects
	getAncestral(s1)
	s2$ancestral
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.