Learn R Programming

phylosim (version 3.0.5)

setRateParamList.HKY: Set the rate parameters

Description

Set the rate parameters.

The rate parameters are: Alpha, Beta.

Usage

# S3 method for HKY
setRateParamList(this, value, ...)

Arguments

this

An HKY object.

value

A list containing the rate parameters.

...

Not used.

Value

The list of rate parameters (invisible).

See Also

For more information see HKY.

Examples

Run this code
# NOT RUN {
	# create HKY object
	p<-HKY()
	# set/get rate parameters
	setRateParamList(p,list(
		"Alpha"=1,
		"Beta"=0.5
        ))
	getRateParamList(p)
	# set/get rate parameters via virtual field
	p$rateParamList<-list(
		"Alpha"=1,
		"Beta"=3
        )
	p$rateParamList
	# get object summary
	summary(p)
 
# }

Run the code above in your browser using DataLab