proposeLength.GeneralInDel: Propose indel length

Description Usage Arguments Value Author(s) See Also Examples

Description

Propose indel length.

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

Usage

1
2
## S3 method for class 'GeneralInDel'
proposeLength(this, ...)

Arguments

this

A GeneralInDel object.

...

Not used.

Value

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

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see GeneralInDel.

Examples

1
2
3
4
5
6
	# 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)
 

phylosim documentation built on Nov. 22, 2019, 1:07 a.m.