Learn R Programming

phylosim (version 3.0.5)

setRateParam.GTR: Set the value of a rate parameter

Description

Set the value of a rate parameter.

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

Usage

# S3 method for GTR
setRateParam(this, name, value, ...)

Arguments

this

A GTR object.

name

The name of the rate parameter.

value

A numeric vector of length one.

...

Not used.

Value

The new value of the rate parameter (invisible).

See Also

For more information see GTR.

Examples

Run this code
# NOT RUN {
	# construct a GTR object
	p<-GTR();
	# set/get a rate parameter
	setRateParam(p,"a",4)
	getRateParam(p,"a")
	# get object summary
	summary(p)
 
# }

Run the code above in your browser using DataLab