Learn R Programming

phylosim (version 3.0.5)

getOmegas.CodonSequence: Get the omegas from a collection of sites

Description

Get the omegas from a collection of sites.

Usage

# S3 method for CodonSequence
getOmegas(this, process, index, ...)

Arguments

this

A CodonSequence object.

process

A process object inheriting from GY94.

index

A vector of positions.

...

Not used.

Value

A numeric vector.

See Also

For more information see CodonSequence.

Examples

Run this code
# NOT RUN {
	# create a GY94 process
	p<-GY94()
	# create a CodonSequence object,
	# attach a process p
	s<-CodonSequence(length=20,processes=list(list(p)))
	# set omega values in range 1:5
	setOmegas(s,p,c(0.5,1,1.5),1:5)
	# get omega values from siutes 1,2,3,10, and 20
	getOmegas(s,p,c(1:3,10,20))
 
# }

Run the code above in your browser using DataLab