Learn R Programming

phylosim (version 3.0.5)

setRateParamList.GTR: Set the rate parameters

Description

Set the rate parameters.

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

Usage

# S3 method for 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).

See Also

For more information see GTR.

Examples

Run this code
# NOT RUN {
	# 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)
 
# }

Run the code above in your browser using DataLab