setMaxLength.ContinuousInsertor: 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 'ContinuousInsertor'
setMaxLength(this, value, ...)

Arguments

this

A ContinuousInsertor 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 ContinuousInsertor.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
	# create object
	o<-ContinuousInsertor(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 May 29, 2017, 3:21 p.m.