Learn R Programming

phylosim (version 3.0.5)

hasSiteSpecificParameter.Process: Check if a Process object has the site-process specific parameter with the given id

Description

Check if a Process object has the site-process specific parameter with the given id.

Usage

# S3 method for Process
hasSiteSpecificParameter(this, id, ...)

Arguments

this

A Process object.

id

The identifier of the site-process specific parameter of interest.

...

Not used.

Value

TRUE or FALSE.

See Also

For more information see Process.

Examples

Run this code
# NOT RUN {
	# create a process object
	p<-Process()
	# check whether it has the "rate.multiplier" site-process specific paramter
	hasSiteSpecificParameter(p,"rate.multiplier");	# TRUE
	# check whether it has the "omega" site-process specific paramter
	hasSiteSpecificParameter(p,"omega");	# FALSE
 
# }

Run the code above in your browser using DataLab