setBaseFreqs.TN93: Set the base frequency parameters

Description Usage Arguments Value Author(s) See Also Examples

Description

Set the base frequency parameters.

The order of the frequency parameters must match with the order of symbols in the NucleotideAlphabet objects.

Usage

1
2
## S3 method for class 'TN93'
setBaseFreqs(this, value, ...)

Arguments

this

A TN93 object.

value

A vector of base frequencies.

...

Not used.

Value

value (invisible)

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see TN93.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
	# construct a TN93 object
	p<-TN93()
	# set/get base frequency parameters
	setBaseFreqs(p,c(2,1,2,1)/6)
	getBaseFreqs(p)
	# set/get base frequency parameters via virtual field
	p$baseFreqs<-c(4,4,1,1)/10
	p$baseFreqs
	# get object summary
	summary(p)
 

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