Learn R Programming

phylosim (version 3.0.5)

getType.BrownianInsertor: Get the type of the BrownianInsertor process

Description

Get the type of the BrownianInsertor process.

If type is discrete, than the process inherits from DiscreteInsertor. If the type is continuous, then the object inherits from ContinuousInsertor.

Usage

# S3 method for BrownianInsertor
getType(this, ...)

Arguments

this

A BrownianInsertor object.

...

Not used.

Value

A character vector of length one.

See Also

For more information see BrownianInsertor.

Examples

Run this code
# NOT RUN {
	p<-BrownianInsertor(type="discrete")
	# get type
	getType(p)
	# get upstream classes
	class(p)
	p<-BrownianInsertor(type="continuous")
	# get type via virtual field
	p$type
	# get upstream classes
	class(p)
 
# }

Run the code above in your browser using DataLab