Learn R Programming

phylosim (version 3.0.5)

setMaxLength.ContinuousInsertor: Set the maximum length

Description

Set the maximum length.

Usage

# S3 method for ContinuousInsertor
setMaxLength(this, value, ...)

Arguments

this

A ContinuousInsertor object.

value

A numeric (integer) vector of length one.

...

Not used.

Value

The new maximum length.

See Also

For more information see ContinuousInsertor.

Examples

Run this code
# NOT RUN {
	# 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)
 
# }

Run the code above in your browser using DataLab