setRateParamList.GTR: Set the rate parameters

Description Usage Arguments Value Author(s) See Also Examples

Description

Set the rate parameters.

The rate parameters are named as in PAML (see PAML documentation: http://bit.ly/9SQK2f).

Usage

1
2
## S3 method for class 'GTR'
setRateParamList(this, value, ...)

Arguments

this

A GTR object.

value

A list containing the rate parameters.

...

Not used.

Value

The list of rate parameters (invisible).

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see GTR.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
	# create GTR object
	p<-GTR()
	# set/get rate parameters
	setRateParamList(p,list(
                       "a"=1, "b"=2, "c"=3,
                       "d"=1, "e"=2, "f"=3
        ))
	getRateParamList(p)
	# set/get rate parameters via virtual field
	p$rateParamList<-list(
                       "a"=4, "b"=1, "c"=4,
                       "d"=1, "e"=4, "f"=1
        )
	p$rateParamList
	# get object summary
	summary(p)
 

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