setMaxLength.ContinuousDeletor: Set the maximum length

Description Usage Arguments Value Author(s) See Also Examples

Description

Set the maximum length.

Usage

1
2
## S3 method for class 'ContinuousDeletor'
setMaxLength(this, value, ...)

Arguments

this

A ContinuousDeletor object.

value

A numeric (integer) vector of length one.

...

Not used.

Value

The new maximum length.

Author(s)

Botond Sipos, Gregory Jordan

See Also

For more information see ContinuousDeletor.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
	# create object
	o<-ContinuousDeletor(rate=1)
	# set length sampling expression via virtual field
	o$dist<-expression(rnorm(1,mean=6,sd=3))
	# set/get maxLength
	setMaxLength(o, 3)
	getMaxLength(o)
	# set/get maxLength via virtual field
	o$maxLength<-10
	o$maxLength
	# propose a length
	proposeLength(o)
 

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