Learn R Programming

phylosim (version 3.0.5)

proposeLength.GeneralInDel: Propose indel length

Description

Propose indel length.

This method simply calls the function returned by the getProposeBy method.

Usage

# S3 method for GeneralInDel
proposeLength(this, ...)

Arguments

this

A GeneralInDel object.

...

Not used.

Value

A numeric vector of length one (the indel length).

See Also

For more information see GeneralInDel.

Examples

Run this code
# NOT RUN {
	# create a GeneralInDel object
	# proposing event lengths in the range 1:10
	o<-GeneralInDel(rate=1, propose.by=function(process){sample(c(1:10),1)});
	# propose indel length
	proposeLength(o)
 
# }

Run the code above in your browser using DataLab