Learn R Programming

phylosim (version 3.0.5)

setBaseFreqs.F84: Set the base frequency parameters

Description

Set the base frequency parameters.

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

Usage

# S3 method for F84
setBaseFreqs(this, value, ...)

Arguments

this

A F84 object.

value

A vector of base frequencies.

...

Not used.

Value

value (invisible)

See Also

For more information see F84.

Examples

Run this code
# NOT RUN {
       # construct object
       p<-F84()
       # 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)
 
# }

Run the code above in your browser using DataLab